.collapse {StabPerf}R Documentation

Collapses the elements of a vector based on a list of factors

Description

Collapses the elements of a vector based on a list of factors, based on tapply(). Each group is replaced by the first element in the group.

Usage

.collapse(data, factors)

Arguments

data the vector to be collapsed
factors factors defining the grouping of data

See Also

tapply


[Package StabPerf version 0.5 Index]