ec_rarefaction: Compute a rarefaction curve

Description Usage Arguments Value Author(s) References Examples

Description

Compute a rarefaction curve based on a presence-basence matrix.

Usage

1
ec_rarefaction(mat_pa, nrep = 20)

Arguments

mat_pa

presence absence matrix (sites as rows and species as columns).

nrep

number of replicates.

Value

A matrix with rarefaction replicates as rows.

Author(s)

Kevin Cazelles

References

Gotelli, N. J., and Robert K. C.. Quantifying Biodiversity: Procedures and Pitfalls in the Measurement and Comparison of Species Richness. Ecology Letters (2001).

Examples

1
2
mat <- matrix(stats::runif(40)>.4, 10)
ec_rarefaction(mat, 10)

KevCaz/ecoocc documentation built on May 25, 2019, 12:22 p.m.