Learn R Programming

epm (version 1.1.4)

addPhylo: addPhylo

Description

Add a phylogeny to epmGrid object.

Usage

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

Value

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

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.

Author

Pascal Title

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.

Examples

Run this code
tamiasEPM
tamiasTree

addPhylo(tamiasEPM, tamiasTree)

Run the code above in your browser using DataLab