addTraits {epm}R Documentation

addTraits

Description

Add univariate or multivariate trait data to an epmGrid object.

Usage

addTraits(x, data, replace = FALSE, verbose = FALSE)

Arguments

x

object of class epmGrid

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?

verbose

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

Details

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

Value

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

Author(s)

Pascal Title

Examples

tamiasEPM
tamiasTraits

addTraits(tamiasEPM, tamiasTraits)


[Package epm version 1.1.2 Index]