freq.calc: Compute species' relative frequency

View source: R/freq.calc.R

freq.calcR Documentation

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)

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

data(testdata)
spmatrix <- data2mat(testdata)
freq.calc(spmatrix)

spaa documentation built on April 4, 2025, 2:41 a.m.