arrivals_by_torres: Estimates pest arrivals due to Torres Strait air passengers

View source: R/arrivals_by_torres.R

arrivals_by_torresR Documentation

Estimates pest arrivals due to Torres Strait air passengers

Description

Estimates pest arrivals due to Torres Strait air passengers coming into Cairns.

Usage

arrivals_by_torres(
  pop_density,
  airport_weight,
  leakage_rate,
  establishment_rate,
  outfile,
  return_rast = FALSE,
  overwrite = FALSE
)

Arguments

pop_density

A RasterLayer or file path to a raster file containing population density.

airport_weight

A RasterLayer or file path to a raster file containing distance from Cairns airport weights.

leakage_rate

Numeric vector of 2 values, giving the lower and upper bounds of a 95% CI for leakage rate (the number of pest leakage events in a random year).

establishment_rate

Numeric vector of 2 values, giving the lower and upper bounds of a 95% CI for establishment rate (the rate of survival, to establishment, for leakage events).

outfile

Character. Output raster file path. If probability has length > 1, the file type must support multiband rasters (e.g. GeoTiff). 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.

overwrite

Logical. If TRUE and outfile is not missing, it will be overwritten if the file specified by outfile already exists.

Value

If outfile is specified, the resulting raster (multiband if probability has length > 1) is saved as a tiff at that path. If return_rast is TRUE or outfile is not specified the resulting raster object is returned, otherwise NULL is returned invisibly.

See Also

Other functions estimating arrivals: arrivals_by_containers(), arrivals_by_fertiliser(), arrivals_by_food(), arrivals_by_goods(), arrivals_by_machinery(), arrivals_by_mail(), arrivals_by_nurserystock(), arrivals_by_residents(), arrivals_by_tourists(), arrivals_by_vessels(), arrivals_by_wind()


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