ILnumber: IL number

Description Usage Arguments Value Author(s) Examples

View source: R/ILnumber.R

Description

Computes the number of internal nodes with a single tip child.

Usage

1
ILnumber(tree, normalise = FALSE)

Arguments

tree

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.

normalise

option to normalise the result, default is FALSE

Value

The integer number of internal nodes with a single tip child.

Author(s)

Michael Boyd [email protected]

Michelle Kendall [email protected]

Examples

1
2
3
4
5
6
## Find the IL number of a random tree with 10 tips:
tree <- rtree(10)
plot(tree)
ILnumber(tree)
## and the normalised IL number:
ILnumber(tree, normalise=TRUE)

phyloTop documentation built on Feb. 22, 2018, 1:03 a.m.