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

freq.calc(matr)

Arguments

matr

A community matrix

Details

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

Value

A vector containing relative frequency for each species

References

None

Author

Jinlong Zhang jinlongzhang01@gmail.com

Examples

data(testdata) spmatrix <- data2mat(testdata) freq.calc(spmatrix)
#> sp1 sp2 sp3 sp4 sp5 sp6 sp7 #> 0.6666667 0.6666667 0.6666667 0.6666667 0.3333333 0.3333333 0.3333333