cbind {edgeR} | R Documentation

## Combine DGEList Objects

### Description

Combine a set of `DGEList` objects.

### Usage

    ## S3 method for class 'DGEList'
    cbind(..., deparse.level=1)
    ## S3 method for class 'DGEList'
    rbind(..., deparse.level=1)

### Arguments

`...` | `DGEList` objects.
`deparse.level` | not currently used, see `cbind` in the base package

### Details

`cbind` combines data objects assuming the same genes in the same order but different samples. `rbind` combines data objects assuming equivalent samples, i.e., the same RNA targets, but different genes.

For `cbind`, the matrices of count data from the individual objects are cbinded. The data.frames of samples information, if they exist, are rbinded. The combined data object will preserve any additional components or attributes found in the first object to be combined. For `rbind`, the matrices of count data are rbinded while the sample information is unchanged.

### Value

An `DGEList` object holding data from all samples and all genes from the individual objects.

### Author(s)

Gordon Smyth

### See Also

`cbind` in the base package.

### Examples

    ## Not run:
    dge <- cbind(dge1,dge2,dge3)

    ## End(Not run)

[Package edgeR version 3.22.5 Index]