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