View source: R/01_search_parents.R
search_parents | R Documentation |
Search parent nodes of each terminal node from a tree
search_parents(ranger_tree)
ranger_tree |
[ |
[data.table
]
A data.table
containing parent nodes of each terminal node
Cesaire J. K. Fouodo
child_nodes <- list( c(1, 0, 3, 5, 0, 0, 7, 0, 0), c(2, 0, 4, 6, 0, 0, 8, 0, 0) ) parent_nodes <- search_parents(ranger_tree = child_nodes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.