getNdPrid: Get pre-nodes to root

Description

Return node ids for connecting id to root.

Usage

1
getNdPrid(tree, id)

Arguments

tree

TreeMan object

id

node id

Details

Returns a vector.

See Also

getNdsPrid, getNdPtid, getNdsPtid, https://github.com/DomBennett/treeman/wiki/get-methods

Examples

1
2
3
4
library(treeman)
tree <- randTree(10)
# get all nodes to root
getNdPrid(tree, id='t1')

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.