node_kind | R Documentation |
Find the kind of a node
node_kind(x)
x |
A node, either from |
A list with as many elements as in the input. Each element is a character value.
src <- "x <- rnorm(100, mean = 2)
any(duplicated(y))
x <- z + 1
any(duplicated(x))"
root <- src |>
tree_new() |>
tree_root()
root |>
node_find(ast_rule(pattern = "any(duplicated($VAR))")) |>
node_kind()
root |>
node_find(ast_rule(pattern = "$X + $VALUE")) |>
node_kind()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.