Learn R Programming

spaa (version 0.2.5)

freq.calc: Compute species' relative frequency

Description

Computing species' relative frequency as defined by the numbers of plots having a species divided by the total number of plots.

Usage

freq.calc(matr)

Value

A vector containing relative frequency for each species

Arguments

matr

A community matrix

Author

Jinlong Zhang jinlongzhang01@gmail.com

Details

The input should be a standard community matrix with rows representing sites and columns representing species.

References

None

Examples

Run this code
data(testdata)
spmatrix <- data2mat(testdata)
freq.calc(spmatrix)

Run the code above in your browser using DataLab