R: Get children IDs

getNdKids {treeman} | R 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

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

[Package treeman version 1.1.4 Index]