e2c {calculus}R Documentation

Expressions to Characters

Description

Converts expressions to characters.

Usage

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)

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


[Package calculus version 1.0.1 Index]