Get alpha diversity using shannon

shannon(x)

Arguments

x

A list of counts

Value

A single value

Examples

shannon(seq_len(10))
#> [1] 2.151282