addPhylo {epm}R Documentation

addPhylo

Description

Add a phylogeny to epmGrid object.

Usage

addPhylo(x, tree, replace = FALSE, verbose = FALSE)

Arguments

x

object of class epmGrid

tree

a phylogeny of class phylo, or a set of trees of class multiPhylo

replace

boolean; if a tree is already a part of x, should it be replaced?

verbose

if TRUE, list out all species that are dropped/excluded, rather than counts.

Details

If any species in the phylogeny are not found in the epmGrid geographical data, then those species will be dropped from the phylogeny, and a warning will be issued.

If providing a set of trees as a multiPhylo object, it is expected that all trees have the same tips.

Value

object of class epmGrid, with a phylo object as the list element named phylo.

Author(s)

Pascal Title

Examples

tamiasEPM
tamiasTree

addPhylo(tamiasEPM, tamiasTree)


[Package epm version 1.1.2 Index]