richness: Richness or number of observed species

Description Usage Arguments Details Value Examples

Description

Richness or number of observed species

Usage

1

Arguments

x

A numeric vector of species counts or proportions.

Details

The richness is simply the number of nonzero elements in x. Relation to other definitions:

Value

The number of species observed, R ≥q 0.

Examples

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

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