treeman (version 1.1.4)

getNdPrids: Get pre-nodes to root

Description

Return node ids for connecting id to root.

Usage

getNdPrids(tree, id)

Arguments

tree

TreeMan object

id

node id

Details

Returns a vector. IDs are returned order from node ID to root.

See Also

getNdsPrids, getNdPtids, getNdsPtids, https://github.com/DomBennett/treeman/wiki/get-methods

Examples

Run this code
# NOT RUN {
library(treeman)
tree <- randTree(10)
# get all nodes to root
getNdPrids(tree, id='t1')
# }

Run the code above in your browser using DataCamp Workspace