Calculate the balances of all nodes

Description

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

Usage

1
calcNdsBlnc(tree, nids, ...)

Arguments

tree

TreeMan object

nids

node ids

...

plyr arguments

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

1
2
3
library(treeman)
tree <- randTree(10)
calcNdsBlnc(tree, nids=tree['nds'])

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.