dimnames | R Documentation |
Retrieve or set the dimnames of a matrix.
## S4 method for signature 'fm' dimnames(x) ## S4 method for signature 'fmV' dimnames(x) ## S4 replacement method for signature 'fm,list' dimnames(x) <- value ## S4 replacement method for signature 'fmV,list' dimnames(x) <- value
x |
a FlashR matrix. |
value |
a list that provides values for dimension names. |
dimnames
return NULL if there aren't dimension names.
Otherwise, return the dimension names.
mat <- fm.runif.matrix(100, 10) dimnames(mat) dimnames(mat) <- list("dim1", "dim2")