R: Get lineage for multiple nodes

getNdsLng {treeman} | R Documentation

## Get lineage for multiple nodes

### Description

Return unique taxonyms for connecting `ids` to root.

### Usage

    getNdsLng(tree, ids, parallel = FALSE, progress = "none")

### Arguments

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

### Details

Returns a list, parallelizable.

### See Also

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

### Examples

    library(treeman)
    data(mammals)
    # return human and gorilla lineages
    getNdsLng(mammals, id=c('Homo_sapiens', 'Gorilla_gorilla'))

[Package treeman version 1.1.4 Index]