Transforme a list of metrics to apply them to groups, typically to populations.
Usage
IndexByGroups(metrics, groups)
Arguments
- metrics
A vector of metrics like the argument "index" of function ComIndex
- groups
Name of the factor to apply the metrics to groups in the form "pop", e.g. population
Value
A vector of transformed metrics