https://github.com/cran/ape
Tip revision: 68c843ddfc05e2ade059d1326ac2921be619eb5e authored by Emmanuel Paradis on 05 March 2014, 00:00:00 UTC
version 3.1
version 3.1
Tip revision: 68c843d
cophenetic.phylo.Rd
\name{cophenetic.phylo}
\alias{cophenetic.phylo}
\alias{dist.nodes}
\title{Pairwise Distances from a Phylogenetic Tree}
\usage{
\method{cophenetic}{phylo}(x)
dist.nodes(x)
}
\arguments{
\item{x}{an object of class \code{"phylo"}.}
}
\description{
\code{cophenetic.phylo} computes the pairwise distances between the
pairs of tips from a phylogenetic tree using its branch lengths.
\code{dist.nodes} does the same but between all nodes, internal and
terminal, of the tree.
}
\value{
a numeric matrix with colnames and rownames set to the names of the
tips (as given by the element \code{tip.label} of the argument
\code{phy}), or, in the case of \code{dist.nodes}, the numbers of the
tips and the nodes (as given by the element \code{edge}).
}
\author{Emmanuel Paradis}
\seealso{
\code{\link{read.tree}} to read tree files in Newick format,
\code{\link[stats]{cophenetic}} for the generic function
}
\keyword{manip}