spec_sample: Sample species richness

Description Usage Arguments Details Value References Examples

View source: R/SAC_spatial.R

Description

Expected species richness in a random sample of fixed size.

Usage

1
spec_sample(abund_vec, n)

Arguments

abund_vec

Species abundance distribution of the community (integer vector)

n

Sample size in terms of number of individuals (integer)

Details

The expected number of species is calculated after Hurlbert 1971, Equation 3.

spec_sample is similar to the function rarefy in the R package vegan.

Value

Expected number of species in a sample of n individuals

References

Hurlbert, S.H. 1971. The nonconcept of species diversity: a critique and + alternative parameters. Ecology 52, 577-586.

Examples

1
2
sad1 <- sim_sad(100, 1000)
spec_sample(abund_vec = sad1, n = 20)

MoBiodiv/MoBspatial documentation built on July 24, 2021, 6:09 p.m.