SplitXDataFrame-class {IRanges}R Documentation

Split XDataFrame

Description

Represents an XDataFrame split along some factor. Internally a list of XDataFrame instances and extends TypedList. Asserts all elements have the same number and names of columns.

Accessors

In the following code snippets, x is a SplitXDataFrame.

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.

Constructor

SplitXDataFrame(...): Concatenates the XDataFrame instances in ... into a new SplitXDataFrame. Note that all arguments should have the same number and names of columns.

Coercion

In the following code snippets, x is a SplitXDataFrame.

as(from, "XDataFrame"): Coerces a SplitXDataFrame to an XDataFrame by combining the rows of the elements. This essentially unsplits the XDataFrame.
unlist(x, recursive = TRUE, use.names = TRUE): Same as above, except specifying use.names to FALSE drops the row names. recursive is ignored.
as.data.frame(x, row.names=NULL, optional=FALSE, ...): Unsplits the XDataFrame and coerces it to a data.frame, with the rownames specified in row.names. The optional argument is ignored.

Note

The RangedData drove the development of this class. It is not clear if it is of general use and might disappear.

Author(s)

Michael Lawrence

See Also

XDataFrame, RangedData, which uses a SplitXDataFrame to split the data by the spaces.


[Package IRanges version 1.0.16 Index]