dist.phylo {ape} | R Documentation |
This function computes the pairwise distances between the pairs of tips from a phylogenetic tree using the branch lengths of the latter.
dist.phylo(phy, full = FALSE)
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. |
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
).
Julien Claude claude@isem.univ-montp2.fr and Emmanuel Paradis paradis@isem.univ-montp2.fr
read.tree
to read tree files in Newick format