CheckBinaryMatrix {MultBiplotR} | R Documentation |
Checks if a data matrix is binary
CheckBinaryMatrix(x)
x |
Matrix to check. |
Checks if all the entries of the matix are either 0 or 1.
TRUE
if the matrix is binary.
Jose Luis Vicente-Villardon
data(spiders)
sp=Dataframe2BinaryMatrix(spiders)
CheckBinaryMatrix(sp)