R/diversities.R
diversities.Rd
Get alpha diversity
diversities(counts_table, index = "all", zeroes = TRUE)
A dataframe with organism x sample
One of inverse_simpson,gini_simpson,shannon,fisher,coverage,unit
A boolean for whether to ignore zero values
A list of alpha diversity
diversities(matrix(seq_len(12), nrow = 3), index = "shannon") #> [1] 1.011404 1.085189 1.093390 1.095854