atleast_2d: View Input as an Array with at Least Two Dimensions.

Description Usage Arguments Value Examples

Description

Ensure that the input has at least two dimensions.

Usage

1

Arguments

x

An R object, for example a vector, matrix, array, or data frame.

Value

The same object, but with a "dim" attribute.

Examples

1
2
3
x <- 1:10
x
atleast_2d(x)

ramify documentation built on May 2, 2019, 5:58 a.m.