Description Usage Arguments See Also
View source: R/array_transform.R
mat2array
reshapes a matrix to an array. It is essentially the inverse
function of array2mat.
1 |
dat |
a matrix to reshape |
dims |
a numeric vector indicating the dimensions of the resulting array or a (potentially named) list indicating the dimnames attribute of the resulting array. If NULL (default), dat is assumed to be the result of a call to array2mat(). |
row_dim |
name or index of dims which corresponds to the row dimension of dat. If NULL (default), dat is assumed to be the result of a call to array2mat(). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.