ec_rarefaction: Compute a rarefaction curve

Description Usage Arguments Value References Examples

View source: R/ec_rarefaction.R

Description

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

Usage

1
ec_rarefaction(x, nrep = 100)

Arguments

x

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

nrep

number of replicates.

Value

A matrix with rarefaction replicates as rows.

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
3
mat <- ec_generate_pa(20, 10, .4)
res <- ec_rarefaction(mat, 1000)
plot(apply(res, 1, mean))

KevCaz/ecoocc documentation built on Nov. 7, 2021, 3:02 p.m.