make_regional_phylo_dist: Make a species pool-level phylogenetic distance matrix

Description Usage Arguments Value Author(s)

View source: R/Regional_phylo_dist.R

Description

Create a phylogeny from a species pool and then calculate patristic distances between all species

Usage

1
make_regional_phylo_dist(spp.vector, phylo, square_root = TRUE)

Arguments

spp.vector

A character vector of species names. Species names must match those in phylogeny.

phylo

A larger phylogeny that contains all of the species in the spp.vector. If this condition is not met, the function will try to merge in the missing species using pez::congeneric.merge while warning the user.

square_root

Square root transform branch lengths in distance matrix?

Value

A phylogenetic distance matrix in the form of a data.frame

Author(s)

Sam Levin


levisc8/Fun_Phylo_Package documentation built on June 2, 2020, 8:41 a.m.