Description Usage Arguments Details Value Examples
View source: R/tree_routines.R
Extracts a sub-tree rooted at a particular node.
1 | subtree_at(obj, at_node, preserve_call = FALSE)
|
obj |
An object of class TreeHarp |
at_node |
The root of the new sub-tree. An integer, not a label, that corresponds to BFS indexing of the tree. |
preserve_call |
A logical value that indicates if a sub-call should be extracted. This might be slower, but it allows you to evaluate it later. |
This is meant for internal use, so the nodeTypes slot is silently dropped, unless preserve_call is set to TRUE
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.