Learn R Programming

epm (version 1.1.4)

addTraits: addTraits

Description

Add univariate or multivariate trait data to an epmGrid object.

Usage

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

Value

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

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.

Author

Pascal Title

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.

Examples

Run this code
tamiasEPM
tamiasTraits

addTraits(tamiasEPM, tamiasTraits)

Run the code above in your browser using DataLab