Description Usage Arguments Value Note Author(s) Examples

Calculates Shannon's Biodiversity Index on a single column of relative abundance data. This metric takes into account both richness and evenness.

1 |

`sample` |
A vector of relative abundance data, typically a single column in a matrix |

Returns a single number indicating the amount of biodiversity in the tested sample

Use apply functions to calculate Shannon's index for all samples in a matrix

Alexandra Linz <amlinz16@gmail.com>

1 2 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.