Counts the number of nodes in a tree (dendrogram, hclust, phylo).
1 2 3 4 5 6 7 8 9 10
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
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.