array2vector | R Documentation |
Makes a vector from an array respecting dim and dimorder
array2vector(x, dim = NULL, dimorder = NULL)
x |
an |
dim |
|
dimorder |
|
This is the inverse function of vector2array
.
It extracts the vector from the array by first moving through the fastest rotating dimension dim[dimorder[1]], then dim[dimorder[2]], and so forth
a vector
Jens Oehlschlägel
vector2array
, arrayIndex2vectorIndex
array2vector(matrix(1:12, 3, 4))
array2vector(matrix(1:12, 3, 4, byrow=TRUE), dimorder=2:1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.