View source: R/array_transform.R
rotate_dimensions | R Documentation |
rotate the dimensions of an array s.t. the first margin becomes the last.
rotate_dimensions(x)
x |
an array |
The invariants for all arrays 'x' with more than one margin are: dim(rotate_dimensions(x)) == c(dim(x)[2:D], dim(x)[1]) x['a','b','c'] == rotate_dimensions(x)['b','c','a']
an array meeting the invariants
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.