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)

DavisVaughan/rray documentation built on Feb. 5, 2020, 10:06 p.m.