establishment_likelihood: Estimate establishment likelihood

View source: R/establishment_likelihood.R

establishment_likelihoodR Documentation

Estimate establishment likelihood

Description

Estimate the likelihood of pest establishment based on total arrivals and environmental suitability.

Usage

establishment_likelihood(
  total_arrivals,
  suitability,
  outfile,
  return_rast = FALSE
)

Arguments

total_arrivals

A Raster* object or path to raster file containing total arrival estimates.

suitability

A RasterLayer or path to raster file containing suitability scores.

outfile

Character. Output raster file path. Must support multiband raster if total_arrivals has multiple layers. If not provided, the Raster* object 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 Raster* object is saved as to that path. 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.