Learn R Programming

MCPAN (version 1.1-21)

Shannon: Shannon index

Description

Calculates the Shannon-Wiener index.

Usage

Shannon(p)

Arguments

p

A numeric vector of proportions.