Enforce array and convert to vector if appropriate
ensuredim turns vectors into 1d-arrays, and leaves arrays unchanged.
drop1d is the
inverse: it converts 1d arrays into vectors.
1 2 3
vector (or array)
esuredim array of at least one dimension
drop1d vector, if
x had only 1 dimension
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.