Get alpha diversity using gini

gini_simpson(x)

Arguments

x

A list of counts

Value

A single value

Examples

gini_simpson(seq_len(10))
#> [1] 0.8727273