| unwrap.array {R.utils} | R Documentation |
Unwrap an array, matrix or a vector to an array of more dimensions
Description
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.
Usage
## S3 method for class 'array'
unwrap(x, split=rep("[.]", length(dim(x))), drop=FALSE, ...)
Arguments
x |
|
split |
A |
drop |
If |
... |
Arguments passed to the |
Details
Although not tested thoroughly, unwrap() should be the inverse
of wrap() such that identical(unwrap(wrap(x)), x) holds.
Value
Returns an array.
Author(s)
Henrik Bengtsson
See Also
*wrap().
Examples
## Not run: See ?wrap.array for an example