shannonDiv: Calculate the Shannon-Weaver diversity index

Description Usage Arguments Value

View source: R/shannonDiv.R

Description

Calculate the Shannon-Weaver diversity index

Usage

1
shannonDiv(comm)

Arguments

comm

A vector with the species ID for each individual in your sample. Each species is represented by a unique integer.

Value

A number representing the Shannon diversity of the input sample.


jmcalabrese/shannonRarefy documentation built on May 26, 2019, 2:31 a.m.