This help topic is for R version 0.60. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/dimnames.html
dimnames {base}R Documentation

Array Labels

Usage

dimnames(x)
dimnames(x) <- nlist

Value

This function obtains the list of extent labels of the array given as its argument. The second form above can be used to set these labels.

See Also

matrix, rownames, colnames.

Examples

## simple versions of rownames and colnames
## could be defined as follows
rownames0 <- function(x) dimnames(x)[[1]]
colnames0 <- function(x) dimnames(x)[[2]]

[Package base version 0.60 ]