substitute_names {teal.modules.clinical} | R Documentation |
Substitute Names in a Quoted Expression
Description
This function substitutes the names on both left- and right-hand sides in a quoted expression. In addition it can also do other standard substitutions on the right-hand side.
Usage
substitute_names(expr, names, others = list())
h_subst_lhs_names(qexpr, names)
substitute_lhs_names(qexpr, names)
substitute_rhs(qexpr, env)
Arguments
expr |
( |
names |
(named |
others |
(named |
qexpr |
( |
env |
( |
Value
The modified expression.
Functions
-
h_subst_lhs_names()
: Helper function to just substitute the top-level names on the left-hand side in a quoted expression. -
substitute_lhs_names()
: recursively substitutes all names on the left-hand sides in a quoted expression. -
substitute_rhs()
: substitutes on the right-hand side in a quoted expression. Note that this is just a synonym forsubstitute_q()
.