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')

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.