Learn R Programming

iNEXT (version 2.0.8)

estimateD: Compute species diversity with a particular of sample size/coverage

Description

estimateD: computes species diversity (Hill numbers with q = 0, 1 and 2) with a particular user-specified level of sample size or sample coverage.

Usage

estimateD(x, datatype = "abundance", base = "size", level = NULL)

Arguments

x
a data.frame or list of species abundances or incidence frequencies. If datatype = "incidence", then the first entry of the input data must be total number of sampling units, followed by species incidence frequencie
datatype
data type of input data: individual-based abundance data (datatype = "abundance"), sampling-unit-based incidence frequencies data (datatype = "incidence_freq") or species by sampling-units incidence matrix (datatype = "inci
base
comparison base: sample-size-based (base="size") or coverage-based (base="coverage").
level
an integer specifying a particular sample size or a number (between 0 and 1) specifying a particular value of sample coverage. If base="size" and level=NULL, then this function computes the diversity estimates for the minimum sa

Value

  • a data.frame of species diversity table including the sample size, sample coverage, method (rarefaction or extrapolation), and diversity estimates with q = 0, 1, and 2 for the user-specified sample size or sample coverage.

Examples

Run this code
data(spider)
estimateD(spider, "abundance", base="size", level=NULL)
estimateD(spider, "abundance", base="coverage", level=NULL)

data(ant)
estimateD(ant, "incidence_freq", base="coverage", level=0.985)

Run the code above in your browser using DataLab