Converts characters to expressions.

c2e(x)

Arguments

x

character.

Value

expression.

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: e2c(), evaluate(), wrap()

Examples

### convert characters
c2e("a")
#> expression(a = a)

### convert array of characters
c2e(array("a", dim = c(2,2)))
#> expression(a, a, a, a)