View source: R/weight_airport_dist.R
weight_airport_dist | R Documentation |
Transform airport distances according to a negative exponential function.
weight_airport_dist( airport_dist, beta = log(0.5)/200, outfile, overwrite = FALSE, return_rast = FALSE )
airport_dist |
Character. File path to a raster file containing proximity to airports. Map units are expected to be kilometres. |
beta |
Numeric. Parameter passed to the exponential function. Distance
to nearest airport is multiplied by this value and exponentiated to give
the relative density of tourists at a location. To generate a distribution
that ensures proportion p of tourists within distance d of
nearest airport, specify |
outfile |
Character. Output raster file path. If missing, object will be returned to R. |
overwrite |
Logical. Overwite the target raster if it already exists? |
return_rast |
Logical. Should the raster object be returned to R? |
If return_rast
is TRUE, or if outfile
is missing,
the resulting RasterLayer
object will be returned. Otherwise
NULL
is returned invisibly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.