# NOT RUN {
# load binda library
library("binda")
# test matrix
m = matrix(c(1, 1, 0, 1, 0, 0,
1, 1, 1, 1, 0, 0,
1, 0, 0, 0, 1, 1,
1, 0, 0, 0, 1, 1), nrow=4, byrow=TRUE)
# Test for binary matrix
is.binaryMatrix(m) # TRUE
# }
Run the code above in your browser using DataLab