richness {abdiv} | R Documentation |
Richness or number of observed species
richness(x)
x |
A numeric vector of species counts or proportions. |
The richness is simply the number of nonzero elements in x
.
Relation to other definitions:
Equivalent to observed_otus()
in skbio.diversity.alpha
.
Equivalent to specnumber
in vegan
.
Equivalent to the sobs
calculator in Mothur.
The number of species observed, R \geq 0
.
x <- c(15, 6, 4, 0, 3, 0)
richness(x) # 4