Learn R Programming

cati (version 0.99.7)

IndexByGroups: Apply metrics to groups.

Description

Transforme a list of metrics to apply them to groups, typically to populations.

Usage

IndexByGroups(metrics, groups)

Value

A vector of transformed metrics

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

Author

Adrien Taudiere

Examples

Run this code
IndexByGroups(c("mean(x)", "sd(x)"), "pop")

Run the code above in your browser using DataLab