subsetBy {doBy}R Documentation

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.

Author(s)

Søren Højsgaard, sorenh@agrsci.dk

See Also

See Also splitBy

Examples






[Package doBy version 1.8 Index]