subsetBy {doBy} | R Documentation |
A data frame is split by a formula into groups. Then subsets are found within each group, and the result is collected into a data frame.
subsetBy(formula, subset, data = parent.frame())
formula |
A formula to split by |
subset |
A string defining the subset operation |
data |
A data frame |
A data frame.
Søren Højsgaard, sorenh@agrsci.dk
See Also splitBy