| rray_set_names | R Documentation |
rray_set_names() sets the names for every axis of an array at once.
rray_set_names(x, names)
x |
An array. |
names |
A list with length equal to the dimensionality of |
x with new names.
x <- array(1:6, c(2, 3))
rray_set_names(x, list(c("r1", "r2"), c("c1", "c2", "c3")))
# `NULL` clears all names
y <- rray_set_names(x, list(c("r1", "r2"), NULL))
rray_set_names(y, NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.