50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

BEQI2 (version 2.0-0)

margalef: Margalef Index of Diversity

Description

Margalef Index of Diversity is given by D=S1ln(N)

Usage

margalef(taxon, count)

Arguments

taxon
character vector with taxa
count
integer vector with counts

Value

Margalef diversity index (numeric vector of length 1)

Details

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