Learn R Programming

epm (version 1.1.5)

dropSpecies: Drop species from epmGrid

Description

Removes particular species from a epmGrid object.

Usage

dropSpecies(x, sp)

Value

new epmGrid object.

Arguments

x

object of class epmGrid

sp

a character vector of species names to be dropped.

Author

Pascal Title

Details

If species in sp are not in x, they will be ignored.

Examples

Run this code
tamiasEPM

new <- dropSpecies(tamiasEPM, sp = c('Tamias_alpinus', 'Tamias_bulleri'))

setdiff(tamiasEPM[['geogSpecies']], new[['geogSpecies']])


Run the code above in your browser using DataLab