Description Usage Arguments Details Value See Also Examples
View source: R/tree_routines.R
This generates the next sub-tree in the enumeration list.
1 | get_next_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. |
Need to reference the paper. This generates the next sub-tree, rooted at the root node of this tree. It will generate singletons on it's own. It has to be used within a loop to do that.
A vector of 1's and 0's, which denotes the next sub-tree in the list.
1 2 3 | th1 <- TreeHarp(list(a=c(2,3), b=NULL, c=NULL))
get_next_subtree(th1, c(1,0,0))
get_next_subtree(th1, c(1,1,0))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.