Substitute on an expression in a value
If expr's value is an expression, substitute in any variables bound in env
.
substituteExpr(expr, env)
expr |
an expression value |
env |
an environment or a list object. |
Differs in that substitute uses expr's expression and not value.
a <- expression(z = y + x + 2) substituteExpr(a, list(x=4))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.