Description Usage Arguments Details Value Examples
View source: R/tree_routines.R
Identifies the nodes on the path from a node up to the root of a TreeHarp object.
1 | path_to_root(th, node_num)
|
th |
A TreeHarp object. |
node_num |
A node number to start tracking upwards from. |
This function allows the user to identify the branch from a node up to the root of a tree.
A vector of 1's and 0's that can be used to carve out the branch
alone, using carve_subtree
.
1 2 3 | ex1 <- quote(x <- f(y, g(5)))
th1 <- TreeHarp(ex1, TRUE)
path_to_root(th1, 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.