where_is | R Documentation |
This function finds the index of the given RStatic object relative to its ancestor nodes.
where_is(node, index = integer(0))
node |
(ASTNode) The RStatic object to traverse. |
index |
(integer) Initial index. The value of this parameter is appended to the end of the computed index. |
An integer vector which can be used as an index in the child()
function.
ast = quote_ast(x <- y + z)
node = child(ast, c(2, 2, 1))
where_is(node)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.