rebuildSpeciesRaster: Rebuild speciesRaster

View source: R/rebuildSpeciesRaster.R

rebuildSpeciesRasterR Documentation

Rebuild speciesRaster

Description

Given a list of species in each cell, all components of the speciesRaster object are reindexed and regenerated.

Usage

rebuildSpeciesRaster(x, spCellList, rasterTemplate = NULL)

Arguments

x

object of class speciesRaster

spCellList

list in which each element is a character vector of species names.

rasterTemplate

a separate raster can be provided if it has different characteristics than the one in x.

Details

This function is used internally by dropFromSpeciesRaster and by coarsen_speciesRaster.

Value

new speciesRaster object.

Author(s)

Pascal Title


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