View source: R/diseaseSIM_helper.R
diseaseSIM_helper | R Documentation |
Runs agent based modeling for one replicate of a single species.
diseaseSIM_helper(
sp,
env_orig,
env_subtract,
days,
sigma,
dest_x,
dest_y,
mot_x,
mot_y,
search_radius,
optimum_lo,
optimum_hi,
init_energy,
direction,
single_rast,
mortality,
energy_adj,
disease_loc,
disease_radius,
disease_mortality,
disease_energy_interact
)
sp |
A species object |
days |
Integer, how many days (timesteps), would you like to model |
sigma |
Numeric, amount of random error |
dest_x |
Numeric, destination x coordinate (longitude) |
dest_y |
Numeric, destination y coordinate (latitude) |
mot_x |
Numeric, movement motivation in x direction |
mot_y |
Numeric, movement motivation in y direction |
search_radius |
Radius of semicircle to South of current location to search for next timestep (in km) |
optimum_lo |
come back |
optimum_hi |
come back |
init_energy |
come back |
direction |
come back |
mortality |
Logical, should low energy levels result in death? |
disease_loc |
Dataframe of x,y coordinates specifying the location of disease clusters. |
disease_radius |
Numeric (0,Infty), what is the maximum distance from the source point is capable capable of causing disease? |
disease_mortality |
Numeric (0,1] What proportion of agents who pass directly over disease source (maximum disease load) will experience mortality? Assume mortality rate then linearly decreases to 0 at disease_radius. |
disease_energy_interact |
Numeric (0,100] Below what energy level should all agents exposed to disease die? |
env |
Raster, should represent NDVI or your environmental variable of interest |
sp_poly |
Come back to this |
A nx3 dataset containing longitude and latitude and energy points for all n timesteps
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.