treeman (version 1.1.3)

getNdKids: 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

Run this code
# NOT RUN {
library(treeman)
tree <- randTree(10)
# everyone descends from root
getNdKids(tree, id=tree['root'])
# }

Run the code above in your browser using DataLab