Computes the number of internal nodes with a single tip child.
ILnumber(tree, normalise = FALSE)
a tree of class phylo
or phylo4
. The tree should be binary and rooted; if not it will be coerced into a binary rooted tree using multi2di, if possible.
option to normalise the result, default is FALSE
The integer number of internal nodes with a single tip child.
## Find the IL number of a random tree with 10 tips:
tree <- rtree(10)
plot(tree)
ILnumber(tree)
#> [1] 4
## and the normalised IL number:
ILnumber(tree, normalise=TRUE)
#> [1] 0.5