Description Usage Arguments Details See Also Examples
This function traverses the given RStatic object, calls the given replace function on each node, and replaces each node with the result of the call.
1 | replace_nodes(node, replace, ..., in_place = FALSE)
|
node |
(ASTNode) The RStatic object to traverse. |
replace |
(function) The function to call on each node. |
... |
Additional arguments to the replace function. |
in_place |
(logical) Copy |
Replacement happens from the bottom up, so node
is replaced last.
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.