addPhylo_speciesRaster: addPhylo_speciesRaster

View source: R/addPhylo_speciesRaster.R

addPhylo_speciesRasterR Documentation

addPhylo_speciesRaster

Description

Add a phylogeny to speciesRaster object.

Usage

addPhylo_speciesRaster(x, tree, replace = FALSE)

Arguments

x

object of class speciesRaster

tree

a phylogeny of class phylo

replace

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

Details

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

Value

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

Author(s)

Pascal Title

Examples

tamiasSpRas
tamiasTree

addPhylo_speciesRaster(tamiasSpRas, tamiasTree)


ptitle/speciesRaster documentation built on June 11, 2022, 1:35 a.m.