Learn R Programming

rich (version 0.2)

rarc: Computes rarefaction curves

Description

rarc computes rarefaction curves and returns a data frame with bootstrap estimates of species richness and average number of individuals for a given sample size.

Usage

rarc(matrix, samplesize=NULL, nrandom=99)

Arguments

matrix
matrix is a typical species-sample matrix. Rows correspond to samples whereas columns stand for species.
samplesize
A vector containing the different sample sizes for which the computations are required. If missing or non vector, samplesize is replaced by a sequence from 1 to the maximum possible sample size given the size of matrix.
nrandom
nrandom is the number of a randomizations used in the bootstrap estimation. Values of nrandom

Value

  • A data frame giving the bootstrap estimate of the richness, number of individuals associated to different number of sampling units.

See Also

raref, raref2, rich

Examples

Run this code
data(ef)
rarc(ef,samplesize=c(5,10,20), nrandom=100)

Run the code above in your browser using DataLab