dimnames {edgeR} | R Documentation

## Retrieve the Dimension Names of a DGE Object

### Description

Retrieve the dimension names of a digital gene expression data object.

### Usage

    ## S3 method for class 'DGEList'
    dimnames(x)
    ## S3 replacement method for class 'DGEList'
    dimnames(x) <- value

### Arguments

`x` | an object of class `DGEList`, `DGEExact`, `DGEGLM`, `DGELRT` or `TopTags`
`value` | a possible value for `dimnames(x)`, see `dimnames`

### Details

The dimension names of a DGE data object are the same as those of the most important component of that object.

Setting dimension names is currently only permitted for `DGEList` or `DGEGLM` objects.

A consequence of these methods is that `rownames`, `colnames`, `rownames<-` and `colnames<-` will also work as expected on any of the above object classes.

### Value

Either `NULL` or a list of length 2. If a list, its components are either `NULL` or a character vector the length of the appropriate dimension of `x`.

### Author(s)

Gordon Smyth

### See Also

`dimnames` in the base package.

[Package edgeR version 3.26.8 Index]