setRowNames {BBmisc} | R Documentation |
rownames(x) = y
, colnames(x) = y
.Wrapper for rownames(x) = y
, colnames(x) = y
.
setRowNames(x, names) setColNames(x, names)
x |
[ |
names |
[ |
Changed object x
.
setColNames(matrix(1:4, 2, 2), c("a", "b"))
## a b
## [1,] 1 3
## [2,] 2 4