Get alpha diversity using simpson

simpson_index(x)

Arguments

x

A list of counts

Value

A single value

Examples

simpson_index(seq_len(10))
#> [1] 0.1272727