XDataFrameList-class {IRanges} | R Documentation

## List of XDataFrames

### Description

Represents a list of `XDataFrame` objects. The `SplitXDataFrameList` class contains the additional restriction that all the columns be of the same name and type. Internally it is stored as a list of `XDataFrame` objects and extends `TypedList`.

### Accessors

In the following code snippets, `x` is a `XDataFrameList`.

  `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

  `XDataFrameList(...)`: Concatenates the `XDataFrame` objects in `...` into a new `XDataFrameList`.
  `SplitXDataFrameList(...)`: Concatenates the `XDataFrame` objects in `...` into a new `SplitXDataFrameList`. Note that all arguments must have the same number and names of columns.

### Coercion

In the following code snippets, `x` is a `SplitXDataFrameList`.

  `as(from, "XDataFrame")`: Coerces a `XDataFrameList` to an `XDataFrame` by combining the rows of the elements. This essentially unsplits the `XDataFrame`.
  `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 these classes. It is not clear if they are of general use and might disappear.

### Author(s)

Michael Lawrence

### See Also

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

[Package IRanges version 1.2.3 Index]