Converts any phylo
object to a matrix of pairwise tip-to-tip distances.
phy2dist(tree, precompute_dist = TRUE)
object of class phylo
.
object of class logical
or numeric
.
When TRUE (by default) a distance matrix is generated and stored in slot
distance
, when FALSE no distance matrix is generated, and when numeric
a distance matrix is generated until the number of species exceeds the
defined value.
phy2sim(x)
returns an object of class distance
containing a matrix
of pairwise tip-to-tip distances.