Counts the number of nodes in a tree (dendrogram, hclust, phylo).
1 2 3 4 5 6 7 8 9 10 11 12 13
tree object (dendrogram or hclust)
The idea for the name is from functions like ncol, and nrow.
The phylo method is based on turning the phylo to hclust and than to dendrogram. It may not work for complex phylo trees.
The number of leaves in the tree
nrow, count_terminal_nodes, nleaves
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.