Description Usage Arguments Details Value References Examples
The Berger-Parker dominance is the proportion of the most abundant species.
1 |
x |
A numeric vector of species counts or proportions. |
Equivalent to berger_parker_d()
in
skbio.diversity.alpha
.
Equivalent to the bergerparker
calculator in Mothur.
The Berger-Parker dominance, 0 < D_{BP} ≤q 1. If the vector
sums to zero, the Berger-Parker dominance is undefined, and we return
NaN
.
Berger WH, Parker FL. Diversity of Planktonic Foraminifera in Deep-Sea Sediments. Science. 1970;168(3937):1345-1347.
1 2 | x <- c(15, 6, 4, 0, 3, 0)
berger_parker_d(x) # 15 / 28
|
[1] 0.5357143
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.