dimnames {base} | R Documentation |
dimnames(x)
dimnames(x) <- nlist
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.
matrix
, rownames
, colnames
.
## simple versions of rownames and colnames
## could be defined as follows
rownames0 <- function(x) dimnames(x)[[1]]
colnames0 <- function(x) dimnames(x)[[2]]