Description Usage Arguments Value Examples
View source: R/fullSimulation.R
This function runs the entire simulation by wrapping all other functions into a single function, accepting all default customization options
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | fullSimulation(
data_as_directories = FALSE,
data,
shp_reg_directory = NULL,
shp_reg_layer = NULL,
shp_app_directory = NULL,
shp_app_layer = NULL,
convertFromUTM = FALSE,
dat_sample = NULL,
landcover_varname,
reg_formula,
landcover_invasive,
landcover_susceptible,
x_coords_varname,
y_coords_varname,
spread_rate,
birdcell,
simlength,
simulation_count = 100,
dep_var_modifier,
covar_adjustment = NA,
num_cores = parallel::detectCores() - 1
)
|
data_as_directories |
logical. |
data |
|
shp_reg_directory |
character string specifying directory of shapefile outlining the area of |
shp_reg_layer |
character string specifying layer (.shp) filename corresponding to |
shp_app_directory |
character string specifying directory of shapefile outlining the area of |
shp_app_layer |
character string specifying layer (.shp) filename corresponding to |
convertFromUTM |
logical. Set to |
dat_sample |
numerical. If specified, will take a sample of |
landcover_varname |
character string specifying the landcover variable from |
reg_formula |
regression formula to be used, as in |
landcover_invasive |
value. Numerical or character value of the invasive landcover. |
landcover_susceptible |
value. Numerical or character value(s) of the susceptible landcover(s). If more than one susceptible landcover, provide a vector |
x_coords_varname |
character string. Name of the x-coordinate variable in |
y_coords_varname |
character string. Name of the y-coordinate variable in |
spread_rate |
numerical. Value between 0 and 1 indicating the annual spread rate of the invading landcover. |
birdcell |
numerical. Value between 0 and 1 indicating the probability a random cell can be invaded, regardless of adjacency to existing invaded pixels. |
simlength |
integer. Number of years the simulation should run. |
simulation_count |
integer. Length of simulation bootstrap. |
dep_var_modifier |
numerical. A scalar to optionally return a list of rasters with modified dep_var rasters (e.g. multiply water yield rasters to obtain recharge rasters) |
covar_adjustment |
list. List specifying change in covariate values. See ?gls_spatial_predict. |
num_cores |
numerical. Number of cores for parallel processing, max 5 |
A list of all objects returned by the individual functions
1 | TO DO
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.