margalef | R Documentation |
Margalef Index of Diversity is given by
D = \frac{S-1}{\ln(N)}
For N=1
, the index is set to 0.
margalef(.data = NULL, taxon, count)
margalef_(.data = NULL, taxon, count)
.data |
data in a |
taxon |
taxa names ( |
count |
counts ( |
Margalef diversity index (numeric
vector
of length 1)
margalef_()
: version suitable for calling from a function
(see package lazyeval).
margalef(
taxon = c("Euspira pulchella", "Nephtys cirrosa"),
count = c(4, 6)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.