equitability: Calculates the eveness of the diversity index. It can take on...

Description Usage Arguments Value Examples

Description

Calculates the eveness of the diversity index. It can take on a value between 0 and 1 with 1 being complete eveness.

Usage

1
equitability(x, index = "shannon")

Arguments

x

Vector of counts

index

Selected diversity index. Can be 'shannon' or 'simpson'

Value

A eveness metric of class numeric

Examples

1
2
equitability(x = c(1, 2, 3))
equitability(x = c(20,20,20), index = 'simpson')

jcbain/haterzmapper documentation built on May 14, 2019, 2:06 p.m.