powered by
Returns the balance of a node.
calcNdBlnc(tree, id)
TreeMan object
TreeMan
node id
Balance is calculated as the absolute difference between the number of descendents of the two bifurcating edges of a node and the expected value for a balanced tree. NA is returned if the node is polytomous or a tip.
NA
calcNdsBlnc, https://github.com/DomBennett/treeman/wiki/calc-methods
calcNdsBlnc
# NOT RUN { library(treeman) tree <- randTree(10) calcNdBlnc(tree, id=tree['root']) # root balance # }
Run the code above in your browser using DataLab