Description Usage Arguments Value Examples
View source: R/is.binary.matrix-functions.R
Tests whether given matrix is a binary one.
1 |
x |
matrix |
TRUE/FALSE
1 2 3 4 5 6 7 8 | library("similarity")
m <- matrix(c(1, 2, NA, 2), nrow=2, ncol=2)
b <- matrix(c(1, 1, 0, 1), nrow=2, ncol=2)
is.binary.matrix(m) # FALSE
is.binary.matrix(1:10) # FALSE
is.binary.matrix(b) # TRUE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.