getNdKids: Get children IDs

View source: R/a.R

getNdKidsR Documentation

Get children IDs

Description

Return the node ids of all tips that descend from node.

Usage

getNdKids(tree, id)

Arguments

tree

TreeMan object

id

node id

Details

Returns a vector

See Also

getNdsKids, https://github.com/DomBennett/treeman/wiki/get-methods

Examples


tree <- randTree(10)
# everyone descends from root
getNdKids(tree, id = tree["root"])

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