unwrap.array

0th

Percentile

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
x
An array or a matrix.
split
A list or a character vector. If a list, it
drop
If TRUE, dimensions of of length one are dropped, otherwise not.
...
Arguments passed to the split functions.
Details

Although not tested thoroughly, unwrap() should be the inverse of wrap() such that identical(unwrap(wrap(x)), x) holds.

Value

See Also

*wrap().

Aliases
  • unwrap.array
  • unwrap.array
  • unwrap.matrix
  • unwrap.data.frame
  • unwrap.default
Examples
See ?wrap.array for an example
Documentation reproduced from package R.utils, version 1.7.3, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.