copy_names | R Documentation |
Attempts to copy names that fit the dimensions of vectors, lists, matrices and data.frames.
copy_names(x, y, partialmatching = T)
x |
(an object) An object whose dimnames should be copied. |
y |
(an object) An object whose dimensions that should be renamed. |
m = matrix(1:9, nrow=3)
n = m
rownames(m) = letters[1:3]
colnames(m) = LETTERS[1:3]
copy_names(m, n)
n
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.