menhinick {abdiv} | R Documentation |
Menhinick's richness index
menhinick(x)
x |
A numeric vector of species counts. |
For a vector x
of raw species counts, the Menhinick's richness index
is \frac{S}{\sqrt{N}}
, where N
is the total number
of counts and S
is the total number of species observed.
This index is appropriate only for raw counts, not transformed counts or proportions.
Equivalent to menhinick()
in skbio.diversity.alpha
.
Menhinick's richness index, R > 0
. The index is undefined when
the total number of counts is 0, in which case we return NaN
.
x <- c(15, 6, 4, 0, 3, 0)
menhinick(x)