Description Usage Arguments Details Value Examples
View source: R/tree_routines.R
This functions keeps only the indicated nodes, returning a new sub-tree.
1 | carve_subtree(obj, char_arr)
|
obj |
An object of class TreeHarp. |
char_arr |
A vector of 1's and 0's indicating which nodes to keep. The vector should have length equal to the number of nodes in obj. |
This returns an error if the sub-tree does not define a new tree.
An object of class TreeHarp.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.