calc_pathway_pr: Calculate the pathway-specific probability of pest arrival

View source: R/calc_pathway_pr.R

calc_pathway_prR Documentation

Calculate the pathway-specific probability of pest arrival

Description

Calculate the pathway-specific probability of pest arrival for each raster cell.

Usage

calc_pathway_pr(EE, rast, outfile, return_rast = TRUE)

Arguments

EE

data.frame object obtained from calc_EE().

rast

Raster object or character path to raster file containing dispersal weights.

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.