Learn R Programming

caracas (version 2.0.0)

eval_to_symbol: Create a symbol from a string

Description

Create a symbol from a string

Usage

eval_to_symbol(x)

Value

A caracas_symbol

Arguments

x

String to evaluate

Examples

Run this code
if (has_sympy()) {
   x <- symbol('x')
   (1+1)*x^2
   lim(sin(x)/x, "x", 0)
}

Run the code above in your browser using DataLab