get_hard {c2c} | R Documentation |
Used in get_conf_mat
but might be useful separately
get_hard(x)
x |
A matrix or data frame (or something coercible to a matrix) containing memberships - rows are sites (observations, cases etc.) columns are classes |
Binary matrix of class membership. Class names inherited from names()
or colnames()
.
my_mat <- matrix(runif(20,0,1), nrow = 4)
get_hard(my_mat)