.collapse {StabPerf} | R Documentation |
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.
.collapse(data, factors)
data |
the vector to be collapsed |
factors |
factors defining the grouping of data |