margalef: Margalef Index of Diversity

Description Usage Arguments Details Value

View source: R/utils.R

Description

Margalef Index of Diversity is given by

D = (S-1)/ln(N)

Usage

1
margalef(taxon, count)

Arguments

taxon

character vector with taxa

count

integer vector with counts

Details

For N=1, the index is set to 0.

Value

Margalef diversity index (numeric vector of length 1)


BEQI2 documentation built on May 2, 2019, 8:19 a.m.