getNdPrids: Get pre-nodes to root

Description Usage Arguments Details See Also Examples

View source: R/get-nd-methods.R

Description

Return node ids for connecting id to root.

Usage

1
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

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

treeman documentation built on July 8, 2020, 7:28 p.m.