splitBy {doBy} | R Documentation |
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.
splitBy(formula, data = parent.frame(), drop=FALSE)
formula |
The right hand side of a formula |
data |
A data frame |
drop |
Logical indicating if levels that do not occur should be dropped |
A list of data frames
Søren Højsgaard, sorenh@agrsci.dk
~~objects to See Also as help
, ~~~
data(dietox) splitBy(formula = ~Evit+Cu, data = dietox)