R: Get a node slot for multiple nodes

getNdsSlt {treeman} | R Documentation

## Get a node slot for multiple nodes

### Description

Returns the values of named slot as a vector for atomic values, else list.

### Usage

    getNdsSlt(tree, slt_nm, ids, parallel = FALSE, progress = "none")

### Arguments

`tree` | `TreeMan` object
`slt_nm` | slot name
`ids` | vector of node ids
`parallel` | logical, make parallel?
`progress` | name of the progress bar to use, see `create_progress_bar`

### Details

Returned object depends on name, either character, vector or numeric. Parallelizable. Default node slots are: id, spn, prid, ptid and txnym.

### See Also

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

### Examples

    library(treeman)
    tree <- randTree(10)
    getNdsSlt(tree, slt_nm='spn', ids=tree['tips'])  # return spans of all tips

[Package treeman version 1.1.4 Index]