This package will calculate the Berger-Parker Index of a population. It accepts a population vector, then calls on the universal_diversity4 function, and passes the population vector and a q value (q=Infinity) to it. universal_diversity4 will return a universal diversity value. shannon_entropy3 will divide 1 by the returned diversity measure to obtain a value for the Berger-Parker Index, and return this value as a single numeric value of Berger-Parker Index for the population.
a set of population counts, containing the number of individuals of each species within the population
berger.parker - the Berger-Parker Index for the population
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.