Convert field records to community matrix

data2mat(data = data)

Arguments

data

A dataframe with the the following columns: species, plots or sites, abundance.

Value

Return a community matrix ready for computing diversity indices.

References

None

Author

Jinlong Zhang jinlongzhang01@gmail.com

Examples

data(testdata) spmatrix <- data2mat(testdata)