powered by
Used in get_conf_mat but might be useful separately
get_conf_mat
get_hard(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().
names()
colnames()
# NOT RUN { my_mat <- matrix(runif(20,0,1), nrow = 4) get_hard(my_mat) # }
Run the code above in your browser using DataLab