as_rray: Coerce to an rray

Description Usage Arguments Value Examples

View source: R/coercion.R

Description

Coerce x to an rray. It will keep its dimensions and dimension names if it has any.

Usage

1

Arguments

x

An object to coerce to an rray.

Value

An rray.

Examples

1
2
3
4
as_rray(1)

ex <- matrix(1:10, nrow = 5, dimnames = list(NULL, c("a", "b")))
as_rray(ex)

rray documentation built on July 23, 2019, 5:04 p.m.