splitBy {doBy}R Documentation

Split a data frame

Description

This is essentially a wrapper for the 'split' function, - the important difference being that variables to order by can be given by a model formula.

Usage

splitBy(formula, data = parent.frame())

Arguments

formula The right hand side of a formula
data A data frame

Value

A list of data frames

Author(s)

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

See Also

~~objects to See Also as help, ~~~

Examples

data(dietox)
splitBy(formula = ~Evit+Cu, data = dietox)

[Package doBy version 0.2 Index]