as_array() coerces x to an array. x will keep any existing dimensions and dimension names.

as_array(x, ...)

Arguments

x

An object to coerce to an array.

...

Objects passed on to methods.

Value

An array.

See also

Examples

as_array(1:10)
#> [1] 1 2 3 4 5 6 7 8 9 10