powered by
Richness or number of observed species
richness(x)
A numeric vector of species counts or proportions.
The number of species observed, \(R \geq 0\).
The richness is simply the number of nonzero elements in x. Relation to other definitions:
x
Equivalent to observed_otus() in skbio.diversity.alpha.
observed_otus()
skbio.diversity.alpha
Equivalent to specnumber in vegan.
specnumber
vegan
Equivalent to the sobs calculator in Mothur.
sobs
# NOT RUN { x <- c(15, 6, 4, 0, 3, 0) richness(x) # 4 # }
Run the code above in your browser using DataLab