Description Usage Arguments Details See Also Examples
Returns the balance of a node.
| 1 | calcNdBlnc(tree, id)
 | 
| tree | 
 | 
| id | 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.
calcNdsBlnc, 
https://github.com/DomBennett/treeman/wiki/calc-methods
| 1 2 3 | library(treeman)
tree <- randTree(10)
calcNdBlnc(tree, id=tree['root'])  # root balance
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.