as_r: Convert yacas object to R

View source: R/converters.R

as_rR Documentation

Convert yacas object to R

Description

If x is a yacas command as string, convert to a character vector/matrix in R. If x is a yac_symbol (e.g. from ysym()), then convert it to a numeric object if there are no variables or a character type if there are variables.

Usage

as_r(x)

Arguments

x

yacas list or list of lists to convert

Details

In yacas a vector is a list, and a matrix is a list of lists.


Ryacas documentation built on Jan. 17, 2023, 1:11 a.m.