coarsen_speciesRaster: Coarsen a speciesRaster

View source: R/coarsen_speciesRaster.R

coarsen_speciesRasterR Documentation

Coarsen a speciesRaster

Description

Return a speciesRaster object with a coarser resolution.

Usage

coarsen_speciesRaster(x, fact)

Arguments

x

object of class speciesRaster

fact

the aggregation factor as the number of cells in the horizontal and vertical directions.

Details

Species will be included in the coarser cell if they are found in >= 50 percent of the original-resolution cells that are being aggregated. This should be thought of as more of a convenience function for experimentation. Creating a coarser resolution speciesRaster from species ranges with createSpeciesRaster is the more appropriate approach.

Value

speciesRaster with a coarser resolution.

Author(s)

Pascal Title

Examples

tamiasSpRas

# coarsen such that groups of 4 cells are aggregated to 1 cell
# (2 cells in horizontal and 2 cells in vertical directions)
coarsen_speciesRaster(tamiasSpRas, fact = 2)


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