Skip to contents

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.

Examples


tree <- randTree(10)
# get all nodes to root
getNdPrids(tree, id = "t1")
#> [1] "n6" "n5" "n3" "n2" "n1"