View source: R/0-util-functions.R
tree_idx | R Documentation |
return path index
tree_idx(path, tree, complete = FALSE)
path |
a path from root in the tree. |
tree |
a symmetric tree given as a list of levels. |
complete |
logical, if |
Compute the integer index of the node associated with the
given path in a symmetric tree defined by tree
.
an integer, the index of the node corresponding to path
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.