powered by
Return root to tip distance (prdst) for id
id
getNdPrdst(tree, id)
TreeMan object
TreeMan
node id
Sums the lengths of all branches from id to root.
getNdsPrdst, https://github.com/DomBennett/treeman/wiki/get-methods
getNdsPrdst
# NOT RUN { library(treeman) tree <- randTree(10) getNdPrdst(tree, id='t1') # return the distance to root from t1 # }
Run the code above in your browser using DataLab