data2mat.Rd
Convert field records to community matrix
data2mat(data = data)
A dataframe with the the following columns: species, plots or sites, abundance.
species
plots
sites
abundance
Return a community matrix ready for computing diversity indices.
None
Jinlong Zhang jinlongzhang01@gmail.com
data(testdata) spmatrix <- data2mat(testdata)