R: Get phylogenetic diversities of nodes

getNdsPD {treeman} | R Documentation

## Get phylogenetic diversities of nodes

### Description

Return summed value of all descending spns

### Usage

    getNdsPD(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

Sums the lengths of all descending branches from a node.

### See Also

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

### Examples

    library(treeman)
    tree <- randTree(10)
    getNdsPD(tree, ids=tree['all'])  # return PD of all ids

[Package treeman version 1.1.4 Index]