getNdPrids: Get pre-nodes to root

View source: R/a.R

getNdPridsR Documentation

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


tree <- randTree(10)
# get all nodes to root
getNdPrids(tree, id = "t1")

ropensci/phylotaR documentation built on July 9, 2023, 3:17 p.m.