Returns the absolute differences in number of descendants for bifurcating branches of every node
Details
Runs calcNdBlnc()
across all node IDs. NA
is returned if the
node is polytomous. Parallelizable.
Examples
tree <- randTree(10)
calcNdsBlnc(tree, ids = tree["nds"])
#> [1] 1.0 2.0 0.5 1.0 0.0 0.5 0.5 0.0 0.0