R: Calculate the balances of all nodes

calcNdsBlnc {treeman} | R Documentation

## Calculate the balances of all nodes

### Description

Returns the absolute differences in number of descendants for bifurcating branches of every node

### Usage

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

### Arguments

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

### Details

Runs `calcNdBlnc()` across all node IDs. `NA` is returned if the node is polytomous. Parallelizable.

### See Also

`calcNdBlnc`, https://github.com/DomBennett/treeman/wiki/calc-methods

### Examples

    library(treeman)
    tree <- randTree(10)
    calcNdsBlnc(tree, ids=tree['nds'])

[Package treeman version 1.1.4 Index]