| Line 12... |
Line 12... |
| 12 |
defined by \code{f}. The assignment forms replace values
|
12 |
defined by \code{f}. The assignment forms replace values
|
| 13 |
corresponding to such a division. Unsplit reverses the effect of
|
13 |
corresponding to such a division. Unsplit reverses the effect of
|
| 14 |
\code{split}.
|
14 |
\code{split}.
|
| 15 |
}
|
15 |
}
|
| 16 |
\usage{
|
16 |
\usage{
|
| 17 |
split(x, f, drop = FALSE)
|
17 |
split(x, f, drop = FALSE, ...)
|
| 18 |
split(x, f, drop = FALSE) <- value
|
18 |
split(x, f, drop = FALSE, ...) <- value
|
| 19 |
unsplit(value, f, drop = FALSE)
|
19 |
unsplit(value, f, drop = FALSE)
|
| 20 |
}
|
20 |
}
|
| 21 |
\arguments{
|
21 |
\arguments{
|
| 22 |
\item{x}{vector or data frame containing values to be divided into groups.}
|
22 |
\item{x}{vector or data frame containing values to be divided into groups.}
|
| 23 |
\item{f}{a \dQuote{factor} in the sense that \code{\link{as.factor}(f)}
|
23 |
\item{f}{a \dQuote{factor} in the sense that \code{\link{as.factor}(f)}
|
| Line 25... |
Line 25... |
| 25 |
interaction is used for the grouping.}
|
25 |
interaction is used for the grouping.}
|
| 26 |
\item{drop}{logical indicating if levels that do not occur should be dropped
|
26 |
\item{drop}{logical indicating if levels that do not occur should be dropped
|
| 27 |
(if \code{f} is a \code{factor} or a list).}
|
27 |
(if \code{f} is a \code{factor} or a list).}
|
| 28 |
\item{value}{a list of vectors or data frames compatible with a
|
28 |
\item{value}{a list of vectors or data frames compatible with a
|
| 29 |
splitting of \code{x}. Recycling applies if the lengths do not match.}
|
29 |
splitting of \code{x}. Recycling applies if the lengths do not match.}
|
| - |
|
30 |
\item{\dots}{further potential arguments passed to methods.}
|
| 30 |
}
|
31 |
}
|
| 31 |
\details{
|
32 |
\details{
|
| 32 |
\code{split} and \code{split<-} are generic functions with default and
|
33 |
\code{split} and \code{split<-} are generic functions with default and
|
| 33 |
\code{data.frame} methods.
|
34 |
\code{data.frame} methods.
|
| 34 |
|
35 |
|