Description Usage Arguments Value Author(s)
ensuredim turns vectors into 1d-arrays, and leaves arrays unchanged. drop1d is the
inverse: it converts 1d arrays into vectors.
1 2 3 |
x |
vector (or array) |
drop |
if |
esuredim array of at least one dimension
drop1d vector, if x had only 1 dimension
Claudia Beleites
Claudia Beleites
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.