Learn R Programming

doBy (version 1.5)

subsetBy: Finds subsets of a dataframe which is split by variables in a formula.

Description

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.

Usage

subsetBy(formula, subset, data = parent.frame())

Arguments

formula
A formula to split by
subset
A string defining the subset operation
data
A data frame

Value

  • A data frame.

See Also

See Also splitBy