unwrap.array
From R.utils v1.7.5
by Henrik Bengtsson
Unwrap an array, matrix or a vector to an array of more dimensions
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.
- Keywords
- methods, programming
Usage
## S3 method for class 'array':
unwrap(x, split=rep("[.]", length(dim(x))), drop=FALSE, ...)
Arguments
Details
Although not tested thoroughly, unwrap()
should be the inverse
of wrap()
such that identical(unwrap(wrap(x)), x)
holds.
Value
- Returns an
array
.
See Also
*wrap()
.
Examples
See ?wrap.array for an example
Community examples
Looks like there are no examples yet.