binmat {mefa} | R Documentation |
This is a utility function to convert a matrix with abundance (or measurement) data into a binary (presence/absence) format.
binmat(matrix)
matrix |
a matrix, containing data to convert. |
A result is a matrix with same dimensions and row/column names as the original.
Peter Solymos, Solymos.Peter@aotk.szie.hu, http://www.univet.hu/users/psolymos/personal/
(x <- matrix(data = rpois(15, 1), nrow = 5, ncol = 3)) binmat(x)