Description Usage Arguments Details See Also Examples
View source: R/get-nd-methods.R
Return root to tip distance (prdst) for id
1 | 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
1 2 3 | library(treeman)
tree <- randTree(10)
getNdPrdst(tree, id='t1') # return the distance to root from t1
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.