Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

berger_parker_d

Berger-Parker dominance


Description

The Berger-Parker dominance is the proportion of the most abundant species.

Usage

berger_parker_d(x)

Arguments

x

A numeric vector of species counts or proportions.

Details

  • Equivalent to berger_parker_d() in skbio.diversity.alpha.

  • Equivalent to the bergerparker calculator in Mothur.

Value

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.

References

Berger WH, Parker FL. Diversity of Planktonic Foraminifera in Deep-Sea Sediments. Science. 1970;168(3937):1345-1347.

Examples

x <- c(15, 6, 4, 0, 3, 0)
berger_parker_d(x) # 15 / 28

abdiv

Alpha and Beta Diversity Measures

v0.2.0
MIT + file LICENSE
Authors
Kyle Bittinger [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.