Skip to contents

Get a patristic matrix from a phylo object.

Usage

phylo_to_patristic_matrix(phy, test = TRUE, tol = 0.01, option = 2)

Arguments

phy

A phylo object.

test

Default to TRUE. Whether to test if phy has branch lengths and is ultrametric or not.

tol

branching time in reference above which secondary constraints will be applied to target

option

an integer (1 or 2; see details).

Value

A patristic matrix.