Return node ids for connecting id
to root.
getNdPrids(tree, id)
TreeMan
object
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
# NOT RUN {
library(treeman)
tree <- randTree(10)
# get all nodes to root
getNdPrids(tree, id='t1')
# }
Run the code above in your browser using DataLab