phy2dist: Phylogenetic pairwise tip distance matrix

View source: R/phy2dist.R

phy2distR Documentation

Phylogenetic pairwise tip distance matrix

Description

Converts any phylo object to a matrix of pairwise tip-to-tip distances.

Usage

phy2dist(tree, precompute_dist = TRUE)

Arguments

tree

object of class phylo.

precompute_dist

object of class logical or numeric. When TRUE (by default) a distance matrix is generated and stored in slot distance, when FALSE no distance matrix is generated, and when numeric a distance matrix is generated until the number of species exceeds the defined value.

Value

phy2sim(x) returns an object of class distance containing a matrix of pairwise tip-to-tip distances.


rdiversity documentation built on May 6, 2022, 9:06 a.m.