DataFrameList-class {IRanges} | R Documentation |
Represents a list of DataFrame
objects.
The SplitDataFrameList
class contains the additional restriction
that all the columns be of the same name and type. Internally it is stored
as a list of DataFrame
objects and extends
Sequence
.
In the following code snippets, x
is a DataFrameList
.
dim(x)
: Get the two element integer vector indicating
the number of rows and columns over the entire dataset.dimnames(x)
: Get the list of two character vectors,
the first holding the rownames (possibly NULL
) and the second
the column names.
In the following code snippets, x
is a SplitDataFrameList
. In
general x
follows the conventions of
SimpleList
/CompressedList
with the following addition:
x[i,j,drop]
: If matrix subsetting is used, i
selects
either the list elements or the rows within the list elements as
determined by the [
method for
SimpleList
/CompressedList
, codej selects the columns,
and drop
is used when one column is selected and output can
be coerced into an AtomicList
or RangesList
subclass.
x[i,j] <- value
: If matrix subsetting is used, i
selects either the list elements or the rows within the list elements
as determined by the [<-
method for
SimpleList
/CompressedList
, j
selects the columns
and value
is the replacement value for the selected region.
DataFrameList(...)
: Concatenates the DataFrame
objects in ...
into a new DataFrameList
.SplitDataFrameList(..., compress = TRUE)
:
The ...
arguments can either be a set of DataFrame
objects with the same number and names of columns or a set of objects
(e.g. AtomicList
) that represent split columns that will be
column bound to form DataFrame
objects. If compress = TRUE
,
returns a CompressedSplitDataFrameList
; else returns a
SimpleSplitDataFrameList
.
In the following code snippets, objects in ...
are of class
DataFrameList
.
rbind(...)
: Creates a new DataFrameList
containing
the element-by-element row concatenation of the objects in ...
.
cbind(...)
: Creates a new DataFrameList
containing
the element-by-element column concatenation of the objects in ...
.
In the following code snippets, x
is a SplitDataFrameList
.
as(from, "DataFrame")
: Coerces a
DataFrameList
to an DataFrame
by combining the
rows of the elements. This essentially unsplits the DataFrame
.
as.data.frame(x, row.names=NULL, optional=FALSE, ...)
:
Unsplits the DataFrame
and coerces it to a
data.frame
, with the rownames specified in
row.names
. The optional
argument is ignored.
Michael Lawrence
DataFrame
, RangedData
,
which uses a DataFrameList
to split the data by the spaces.