addTraits_speciesRaster: addTraits_speciesRaster

View source: R/addTraits_speciesRaster.R

addTraits_speciesRasterR Documentation

addTraits_speciesRaster

Description

Add univariate or multivariate trait data to a speciesRaster object.

Usage

addTraits_speciesRaster(x, data, replace = FALSE)

Arguments

x

object of class speciesRaster

data

named numeric vector, matrix or dataframe with rownames corresponding to species in x or pairwise matrix with row and column names corresponding to species in x. If pairwise matrix, the upper triangle of the matrix will be used for calculations.

replace

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

Details

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

Value

object of class speciesRaster, with trait data as the list element named data.

Author(s)

Pascal Title

Examples

tamiasSpRas
tamiasTraits

addTraits_speciesRaster(tamiasSpRas, tamiasTraits)


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