powered by
Traverses the tree to determine the evolutionary path (branches) from root to a given tip.
find_path_to_tip(tree, tip)
A matrix with columns parent and child representing the path
parent
child
A phylogenetic tree of class phylo
phylo
Tip label (character)
phy <- ape::rtree(10) route_n <- find_path_to_tip(phy, "t2")
Run the code above in your browser using DataLab