Description Usage Arguments Details Author(s) References See Also Examples
View source: R/substituteExpr.R
If expr's value is an expression, substitute in any variables bound in env
.
1 | 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.
https://stackoverflow.com/questions/47780150/use-variable-in-r-substitute/986793
substitute
1 2 | a <- expression(z = y + x + 2)
substituteExpr(a, list(x=4))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.