powered by
Checks if a data matrix is binary
CheckBinaryMatrix(x)
TRUE if the matrix is binary.
TRUE
Matrix to check.
Jose Luis Vicente-Villardon
Checks if all the entries of the matix are either 0 or 1.
data(spiders) sp=Dataframe2BinaryMatrix(spiders) CheckBinaryMatrix(sp)
Run the code above in your browser using DataLab