shannon_counts_index: Compute Shannon Index froma a table of counts

View source: R/maxent.R

shannon_counts_indexR Documentation

Compute Shannon Index froma a table of counts

Description

Compute Shannon Index froma a table of counts

Usage

shannon_counts_index(x, base = exp(1))

Arguments

x

table or matrix of observations. If a matrix then, like a table, columns are variables and rows are records.

base

numeric, the base of the logarithm

Value

vector of Shannon index - one element for each record

See Also

NIST entry


BigelowLab/dismotools documentation built on Jan. 4, 2023, 11:24 a.m.