node_prune | R Documentation |
A wrapper of data.tree::Prunes. Prune nodes off a tree by names. This function has side-effects, it modifies the tree given by the argument (see the package data.tree).
node_prune(tree, ...)
tree |
a tree (i.e. a Node object). |
... |
some character strings specifies the names of nodes to be pruned. |
Invisibly returns the tree.
dst <- node_new(
"firm",
"lab", "cap", "land"
)
node_prune(
dst,
"cap", "land"
)
plot(dst)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.