ape (version 1.7)

dist.phylo: Pairwise Distances from a Phylogenetic Tree

Description

This function computes the pairwise distances between the pairs of tips from a phylogenetic tree using the branch lengths of the latter.

Usage

dist.phylo(phy, full = FALSE)

Arguments

phy
an object of class "phylo".
full
a logical indicating whether to return the distances among all tips and nodes (if TRUE); the default is to return only the distances among tips.

Value

  • a numeric matrix with colnames and rownames set, by default, to the names of the tips (as given by the element tip.label of the argument phy), or, if full = TRUE, the numbers of the tips and the nodes (as given by the element edge).

See Also

read.tree to read tree files in Newick format