wrap | R Documentation |
Reshape an array or a matrix by permuting and/or joining dimensions.
wrap(x, map = list(NA), sep = ".")
x |
An array |
map |
A list of length equal to the number of dimensions in the reshaped array. Each element should be an integer vectors specifying the dimensions to be joined in corresponding new dimension. One element may equal NA to indicate that that dimension should be a join of all non-specified (remaining) dimensions. Default is to wrap everything into a vector. |
sep |
A character separating joined dimension names |
This function is extracted from the R.utils library which is licensed under LGPL>=2.1 and written by Henrik Bengtsson.
Henrik Bengtsson, Jan Philipp Dietrich
unwrap
,fulldim
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.