Skip to contents

Computes the pairwise cophenetic distance matrix from a phylogenetic tree of class `phylo`. The output is sorted by tip labels.

Usage

# S3 method for class 'phylo'
tree_to_distances(x, ...)

Arguments

x

A phylogenetic tree of class `phylo` (from the `ape` package).

...

Not used.

Value

An object of class `dist`, with the distances sorted by tip labels.