R: Convert a tuple or dict to R object

Description Usage Arguments Value Examples

Description

Convert a tuple or dict to R object

Usage

1
R(x, add_sym_class = TRUE)

Arguments

x

A python object

add_sym_class

Logical value indicating whether to add "symbolic" class to the elements that can not be converted.

Value

A corresponding R object, if any of its elements can not be converted to R, a "symbolic" class will be added to that element.

Examples

1
2
3
4
syms_init(x, y)
sym_func("div")(x^3L + 6L*x + 1L, x)
sym_func("div")(x^3L + 6L*x + 1L, x) %>% R
sym_func("div")(x^3L + 6L*x + 1L, x) %>% R %>% lapply(class)

Marlin-Na/symbolicR.old documentation built on May 18, 2019, 2:34 a.m.