R: Get pre-distances

getNdsPrdst {treeman} | R Documentation

## Get pre-distances

### Description

Return root to tip distances (prdst) for `ids`

### Usage

    getNdsPrdst(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 branches from `ids` to root.

### See Also

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

### Examples

    library(treeman)
    tree <- randTree(10)
    getNdsPrdst(tree, ids=tree['tips'])  # return prdsts for all tips

[Package treeman version 1.1.4 Index]