shannon_entropy3: Shannon Entropy 3

Description Usage Arguments Value

View source: R/diversity_functions3.R

Description

This package will calculate the Shannon Entropy for a population. It accepts a population vector, then calls on the universal_diversity3 function, and passes the population vector and a q value (q=1) to it. universal_diversity3 will return a universal diversity value. shannon_entropy3 will then calculate the log of the returned diversity measure to obtain a value for Shannon Entropy, and return this value as a single numeric value of Shannon Entropy for the population.

Usage

1
shannon_entropy3(population)

Arguments

population

a set of population counts, containing the number of individuals of each species within the population

Value

shannon.entropy - the Shannon Entropy for the population


EdieBishop/ProgInRBCIfunc documentation built on Dec. 23, 2019, 10:16 p.m.