Skip to contents

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

Usage

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

Arguments

x

A phylogenetic tree of class `pml` (from the `phangorn` package).

...

Not used.

Value

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