| rray_remove_axes | R Documentation |
rray_remove_axes() removes axes with a dimension of 1.
rray_remove_axes(x, axes)
x |
An array. |
axes |
The axes to remove, given by position or by title. Each selected axis must have a dimension of 1. At least one axis must remain. |
Removed axes lose their names and titles. Surviving axes keep their names and titles and carry them to their new locations.
An array with the selected axes removed.
x <- array(1:10, c(10, 1, 1))
rray_remove_axes(x, 2)
rray_remove_axes(x, c(2, 3))
y <- rray_set_titles(x, c("row", "col", "page"))
rray_remove_axes(y, c("col", "page"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.