powered by
Transforme a list of metrics to apply them to groups, typically to populations.
IndexByGroups(metrics, groups)
A vector of transformed metrics
A vector of metrics like the argument "index" of function ComIndex
Name of the factor to apply the metrics to groups in the form "pop", e.g. population
Adrien Taudiere
IndexByGroups(c("mean(x)", "sd(x)"), "pop")
Run the code above in your browser using DataLab