Converts any phylo object to a matrix of pairwise tip-to-tip distances.

phy2dist(tree, precompute_dist = TRUE)

Arguments

tree

object of class phylo.

precompute_dist

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.

Value

phy2sim(x) returns an object of class distancecontaining a matrix of pairwise tip-to-tip distances.