Coverage: Compute sample coverage

Description Usage Arguments Value Examples

View source: R/Coverage.R

Description

Coverage: Compute sample coverage

Usage

1
Coverage(x, datatype, m)

Arguments

x

a vector/matrix/list of species abundances/incidence frequencies or a matrix of incidence table.
If datatype = "incidence_freq", then the first entry of the input data must be total number of sampling units, followed by species incidence frequencies.

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 = "incidence_raw").

m

an integer vector of sample sizes (number of individuals or sampling units) for which diversity estimates will be computed.

Value

a data.frame with sample size and sample coverage.

Examples

1
2
data(bird)
Coverage(bird$abun, datatype="abundance", m=c(10,50,100,150,200))

Example output

    m North.site South.site
1  10  0.4873281  0.3616585
2  50  0.8643411  0.7958180
3 100  0.9338414  0.9066929
4 150  0.9575482  0.9457719
5 200  0.9701000  0.9644845

iNextPD documentation built on May 2, 2019, 3:31 a.m.