split.formula {DescTools} | R Documentation |
Formula Interface for Split
Description
Implementation of a simple formula interface for the split
function.
Usage
## S3 method for class 'formula'
split(x, f, drop = FALSE, data = NULL, ...)
Arguments
x |
a formula of the form |
f |
a 'factor' in the sense that |
drop |
logical indicating if levels that do not occur should be dropped (if |
data |
the data frame from which the formula should be evaluated. |
... |
other arguments to be passed to
|
Author(s)
Andri Signorell <andri@signorell.net>
See Also
Examples
split(extra ~ group, data = sleep)
[Package DescTools version 0.99.55 Index]