Skip to contents

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

Examples


tree <- randTree(10)
# everyone descends from root
getNdKids(tree, id = tree["root"])
#>  [1] "t1"  "t2"  "t3"  "t4"  "t5"  "t6"  "t7"  "t8"  "t9"  "t10"