"dimnames"(x)
"dimnames"(x) <- valueDGEList, DGEExact, DGEGLM, DGELRT or TopTagsdimnames(x), see dimnamesNULL 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.
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.
dimnames in the base package.