Converts expressions to characters.

e2c(x)

Arguments

x

expression.

Value

character.

References

Guidotti, E. (2020). "calculus: High dimensional numerical and symbolic calculus in R". https://arxiv.org/abs/2101.00086

See also

Other utilities: c2e(), evaluate(), wrap()

Examples

### convert expressions
expr <- parse(text = "a")
e2c(expr)
#> [1] "a"

### convert array of expressions
expr <- array(parse(text = "a"), dim = c(2,2))
e2c(expr)
#>      [,1] [,2]
#> [1,] "a"  "a" 
#> [2,] "a"  "a"