
Return root to tip distance (prdst) for id
getNdPrdst(tree, id)
TreeMan
object
node id
Sums the lengths of all branches from id
to root.
getNdsPrdst
,
https://github.com/DomBennett/treeman/wiki/get-methods
# 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