getNdPrdst {treeman} | R Documentation |
Return root to tip distance (prdst) for id
getNdPrdst(tree, id)
tree |
|
id |
node id |
Sums the lengths of all branches from id
to root.
getNdsPrdst
,
https://github.com/DomBennett/treeman/wiki/get-methods
library(treeman) tree <- randTree(10) getNdPrdst(tree, id='t1') # return the distance to root from t1