arrivals_by_tourists: Estimates pest arrival due to tourists

View source: R/arrivals_by_tourists.R

arrivals_by_touristsR Documentation

Estimates pest arrival due to tourists

Description

Estimates pest arrival due to tourists as a function of distance from airport and tourist accommodation.

Usage

arrivals_by_tourists(
  tourist_beds,
  airport_weights,
  leakage_rate,
  establishment_rate,
  outfile,
  return_rast = FALSE,
  overwrite = FALSE
)

Arguments

tourist_beds

A RasterLayer or file path to a raster file containing tourist bed numbers.

airport_weights

A RasterLayer or file path to a raster file containing airport distance 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_torres(), arrivals_by_vessels(), arrivals_by_wind()


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