freq.calc: Compute species' relative frequency

Description Usage Arguments Details Value Author(s) References Examples

View source: R/freq.calc.R

Description

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

Usage

1
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

Author(s)

Jinlong Zhang jinlongzhang01@gmail.com

References

None

Examples

1
2
3
data(testdata)
spmatrix <- data2mat(testdata)
freq.calc(spmatrix)

helixcn/spaa documentation built on Aug. 13, 2021, 3:21 a.m.