| unwrap.array | R Documentation |
Unwrap an array, matrix or a vector to an array of more dimensions. This is done by splitting up each dimension into several dimension based on the names of that dimension.
## S3 method for class 'array'
unwrap(x, split=rep("[.]", length(dim(x))), drop=FALSE, ...)
x |
An |
split |
A |
drop |
If |
... |
Arguments passed to the |
Although not tested thoroughly, unwrap() should be the inverse
of wrap() such that identical(unwrap(wrap(x)), x) holds.
Returns an array.
Henrik Bengtsson
*wrap().
## Not run: See ?wrap.array for an example
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.