Makes a vector from an array respecting dim and dimorder
Usage
array2vector(x, dim = NULL, dimorder = NULL)
Arguments
x
an array
dim
dim
dimorder
dimorder
Details
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