For each node at a given distance from the root, this function finds the size of its induced subclade, i.e. its number of tip descendants.
splitTop(tree, dist)
A vector of integers, each corresponding to the clade size of a node at the given distance from the root. The clade sizes are given in ascending order and each is labelled by its node name or number. This vector can be considered as a partition of the tips or the "split topology" of the tree at a given depth.
## Find the split topology of a random tree with 20 tips, at a distance 2 from the root:
tree <- rtree(20)
plot(tree)
splitTop(tree,2)
#> t15 node38 node23 node27
#> 1 3 5 11