Get children IDs

Share:

Description

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

Usage

1
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

1
2
3
4
library(treeman)
tree <- randTree(10)
# everyone descends from root
getNdKids(tree, id=tree['root'])

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.