| dimtags | R Documentation |
Dimtags are designed to make working with high-dimensional arrays simpler by providing names for each dimension. We use the word "tags" instead of names for two reasons
To avoid confusion with dimnames which already exists and means something different
Because more than dimension can have the same tag. So tags do not uniquely identify each dimension
This infrastructure was put in place to support objects of class
mcarray, which are tagged arrays with some additional
attributes. The primary use of tagging is to simplify the manipulation
of high-dimensional arrays using the collapse function instead
of apply.
dimtags(x)
dimtags(x) <- value
x |
A matrix, array, or any object with a |
value |
A character vector of tags, which must match the number of dimensions |
A character vector of dimtags. The replacement function returns the modified array.
collapse, mcarray.object,
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.