pr_establishment: Calculate probability of establishment

View source: R/pr_establishment.R

pr_establishmentR Documentation

Calculate probability of establishment

Description

Calculate probability of establishment for each raster cell as a function of probabilities of arrival and climate and/or biotic suitability.

Usage

pr_establishment(rast, suitability, outfile, return_rast)

Arguments

rast

Raster object or path to file containing pathway probability of pest arrival.

suitability

Raster object or path to file containing a suitability raster. Cell values must be between 0 (not suitable) and 1 (ideal suitability).

outfile

Character. Output raster file path. If not provided, the RasterLayer will be returned to R.

return_rast

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

Value

If outfile is specified, the resulting RasterLayer is saved to outfile. If return_rast is TRUE or outfile is not specified, the resulting RasterLayer is returned, otherwise NULL is returned invisibly.


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