RDocumentation
Moon
Learn R
Search all packages and functions
ape (version 3.1-1)
is.ultrametric: Test if a Tree is Ultrametric
Description
This function computes the distances from each tip to the root: if the variance of these distances is null, the tree is considered as ultrametric.
Usage
is.ultrametric(phy, tol = .Machine$double.eps^0.5)
Arguments
phy
an object of class
"phylo"
.
tol
a numeric >= 0, variation below this value are considered non-significant (see details).
Value
a logical:
TRUE
if the tree is ultrametric,
FALSE
otherwise.
Details
The default value for
tol
is based on the numerical characteristics of the machine Ris running on.
See Also
is.binary.tree
,
.Machine