Learn R Programming

spaa (version 0.2.5)

data2mat: Convert field records to community matrix

Description

Convert field records to community matrix

Usage

data2mat(data = data)

Value

Return a community matrix ready for computing diversity indices.

Arguments

data

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

Author

Jinlong Zhang jinlongzhang01@gmail.com

References

None

Examples

Run this code
data(testdata)
spmatrix <- data2mat(testdata)

Run the code above in your browser using DataLab