powered by
Expected species richness in a random sample of fixed size.
spec_sample(abund_vec, n)
Expected number of species in a sample of n individuals
Species abundance distribution of the community (integer vector)
Sample size in terms of number of individuals (integer)
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.
spec_sample
rarefy
vegan
Hurlbert, S.H. 1971. The nonconcept of species diversity: a critique and + alternative parameters. Ecology 52, 577-586.
sad1 <- sim_sad(100, 1000) spec_sample(abund_vec = sad1, n = 20)
Run the code above in your browser using DataLab