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, ...)
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.
# S3 method for class 'pml'
tree_to_distances(x, ...)