View source: R/arrivals_by_containers.R
arrivals_by_containers | R Documentation |
Estimates pest arrivals by containers.
arrivals_by_containers( container_weights, port_data, template_raster, leakage_rate, establishment_rate, outfile, return_rast = FALSE, overwrite = FALSE )
container_weights |
An |
port_data |
Character. Path to csv file containing Port Names, Port Codes, Longitude, Latitude and Container volumes. Column names must be (in this order): Name, PortCode, Longitude, Latitude, Count. |
template_raster |
|
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 |
return_rast |
Logical. Should the raster object be returned to R?
Ignored if |
overwrite |
Logical. If |
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.
Other functions estimating arrivals:
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_tourists()
,
arrivals_by_vessels()
,
arrivals_by_wind()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.