Converts expressions to characters.

e2c(x)

Arguments

x

expression.

Value

character.

References

Guidotti E (2022). "calculus: High-Dimensional Numerical and Symbolic Calculus in R." Journal of Statistical Software, 104(5), 1-37. doi:10.18637/jss.v104.i05

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"