Description Usage Arguments Value
View source: R/get_node_parents.R
Helper function for plot_tree
. Takes node structure output from
pretty.gbm.tree
which is 1 row per node showing child nodes for that
node and returns the parents of each node.
1 | get_node_parents(pretty_tree)
|
pretty_tree |
|
data.frame
with columns;
|
parent of node |
|
node of interest |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.