Learn R Programming

spaa (version 0.2.2)

freq.calc: Species relative frequency

Description

This function calculates the species relative frequency which equals to the numbers of occupied plots partitioned by the total number of plots for each species.

Usage

freq.calc(matr)

Arguments

matr
The standard species matrix

Value

Returns a vector that contains relative frequency for each species included in the input matrix.

Details

The input data is a standard species matrix with rows for plots and column for species.

References

None

Examples

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

Run the code above in your browser using DataLab