sub.sp.matrix: Subset species matrix according to relative frequency

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Subset species matrix according to relative frequency.

Usage

1
sub.sp.matrix(spmatrix, freq = 0.5, common = NULL)

Arguments

spmatrix

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

freq

The value of relative frequency to be specified, species with higher relative frequency will be reserved in the output matrix.

common

The number of most common (according to relative frequency) species to be specified.

Details

sub.sp.matrix will select the species whose relative frequency above 0.5 (default), or select certain number of species according to relative frequency.

Value

A subset matrix with certain number of top relative frequency.

Author(s)

Jinlong Zhang jinlongzhang01@gmail.com

References

None

See Also

See Also subset

Examples

1
2
3
4
5
6
7
library(vegan)
data(BCI)
## Select the species whose relative frequency 
## more than 0.5, from BCI data 
sub <- sub.sp.matrix(BCI, freq = 0.5)
## Select the top 30 species according to relative frequency 
sub <- sub.sp.matrix(BCI, common = 30)

spaa documentation built on May 2, 2019, 9:44 a.m.