suitability: Combine abiotic and biotic layers to create suitability...

View source: R/biotic_weight.R

suitabilityR Documentation

Combine abiotic and biotic layers to create suitability raster

Description

Combine biotic (and abiotic) layers into a single suitability raster to be used to scale arrival rates.

Usage

suitability(x, outfile, return_rast = FALSE)

Arguments

x

One of: a RasterStack; a RasterBrick; a list of RasterLayer objects, or a vector of file paths to raster files.

outfile

Character. Name of geotiff where output will be saved. If not provided, raster object will be returned to R.

return_rast

Logical. Should the raster object be returned to R? Ignored if outfile is not provided.

Value

If outfile is specified, the resulting raster is saved as a geotiff to that path. If return_rast is TRUE or outfile is not specified the resulting raster is returned, otherwise NULL is returned invisibly.


jscamac/edmaps documentation built on June 11, 2022, 1:26 a.m.