Description Usage Arguments Value Examples
A convenience function for working with matrices or arrays.
1 | rename_dim(m, new_names, DIM = 2)
|
m |
matrix or array |
new_names |
character |
DIM |
numeric index or name of dimension (if dimensions are named) whose elements will be renamed |
m but with new names
1 2 | m <- array(1:8, dim = c(3, 3, 2))
rename_dim(m, c("newname1", "newname2"), 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.