Last data update: 2014.03.03
|
R: "Sub[stitute] expr[ession]"
"Sub[stitute] expr[ession]"
Description
Substitute the expression sub for the name
nm in expr by walking the tree.
Usage
subexpr(expr, nm, sub)
Arguments
expr |
an expression
|
nm |
a name for which to substitute
|
sub |
the expression to substitute for name nm
|
Value
the expression with all occurrences of nm replaced by sub
Note
this function is called recursively
Results
|