powered by
Return node ids for connecting id to root.
id
getNdPrids(tree, id)
TreeMan object
TreeMan
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
getNdsPrids
getNdPtids
getNdsPtids
# 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