IndexByGroups: Apply metrics to groups.

View source: R/allfunctions_cati.R

IndexByGroupsR Documentation

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

Author(s)

Adrien Taudiere

Examples

IndexByGroups(c("mean(x)", "sd(x)"), "pop")

cati documentation built on Nov. 11, 2026, 1:08 a.m.