ape (version 1.8-5)

cophenetic.phylo: Pairwise Distances from a Phylogenetic Tree

Description

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

Usage

## S3 method for class 'phylo':
cophenetic(x, full = FALSE)

Arguments

x
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, cophenetic for the generic function