Learn R Programming

cati (version 0.99.3)

IndexByGroups: Apply metrics to groups.

Description

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