atleast_2d {ramify} | R Documentation |
Ensure that the input has at least two dimensions.
atleast_2d(x)
x |
An R object, for example a vector, matrix, array, or data frame. |
The same object, but with a "dim"
attribute.
x <- 1:10
x
atleast_2d(x)