powered by
Get the number of nodes in a tree
numnodes.tree(tree)
A vector of character strings, each containing a newick tree
A numeric vector containing the number of nodes in each tree
# NOT RUN { numnodes.tree(c("((hg18:0.142679,(mm9:0.083220,rn4:0.090564):0.269385): 0.020666,canFam2:0.193569);", "(human, (mouse, rat));")) # }
Run the code above in your browser using DataLab