powered by
Identifies the nodes on the path from a node up to the root of a TreeHarp object.
path_to_root(th, node_num)
A vector of 1's and 0's that can be used to carve out the branch alone, using carve_subtree.
carve_subtree
A TreeHarp object.
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.
ex1 <- quote(x <- f(y, g(5))) th1 <- TreeHarp(ex1, TRUE) path_to_root(th1, 5)
Run the code above in your browser using DataLab