x
is a DataFrame
. split(x, f, drop = FALSE)
:
Splits x
into a CompressedSplitDataFrameList
,
according to f
, dropping elements corresponding to
unrepresented levels if drop
is TRUE
.
mstack(..., .index.var = "name")
: Stacks the data frames
passed as through ..., using .index.var
as the index
column name. See stack
.
DataTable
,
Vector
, and
RangedData
, which makes heavy use of this class.
## split
sw <- DataFrame(swiss)
swsplit <- split(sw, sw[["Education"]])
## rbind
do.call(rbind, as.list(swsplit))
## cbind
cbind(DataFrame(score), DataFrame(counts))
Run the code above in your browser using DataLab