| getNdPrids {treeman} | R Documentation |
Return node ids for connecting id to root.
getNdPrids(tree, id)
tree |
|
id |
node id |
Returns a vector. IDs are returned order from node ID to root.
getNdsPrids,
getNdPtids,
getNdsPtids,
https://github.com/DomBennett/treeman/wiki/get-methods
library(treeman) tree <- randTree(10) # get all nodes to root getNdPrids(tree, id='t1')