powered by
Margalef Index of Diversity is given by $$D = \frac{S-1}{\ln(N)}$$
margalef(taxon, count)
Margalef diversity index (numeric
numeric
vector of length 1)
vector
taxa names (character)
character
counts (numeric)
For \(N=1\), the index is set to 0.
margalef( taxon = c("Euspira pulchella", "Nephtys cirrosa"), count = c(4, 6) )
Run the code above in your browser using DataLab