get functional diversity metrics from dataframe This function was inspired from FD package

getFD(spectraits, FDmetric = c("FRic", "FEve", "FDiv"), p = NULL)

Arguments

spectraits

numeric. dataframe containing species in rows and trait values in columns

FDmetric

character. Functional diversity metric

p

list. progressor object for progress bar

Value

FDmetrics