menhinick: Menhinick's richness index

Description Usage Arguments Details Value Examples

Description

Menhinick's richness index

Usage

1

Arguments

x

A numeric vector of species counts.

Details

For a vector x of raw species counts, the Menhinick's richness index is \frac{S}{√{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.

Value

Menhinick's richness index, R > 0. The index is undefined when the total number of counts is 0, in which case we return NaN.

Examples

1
2
x <- c(15, 6, 4, 0, 3, 0)
menhinick(x)

Example output

[1] 0.7559289

abdiv documentation built on Jan. 20, 2020, 5:07 p.m.