moveSIM_helper: Run model for one replicate

View source: R/moveSIM_helper.R

moveSIM_helperR Documentation

Run model for one replicate

Description

Runs agent based modeling for one replicate of a single species. Used by function 'generations' to run more replicates of more species.

Usage

moveSIM_helper(
  sp,
  env,
  days,
  sigma,
  dest_x,
  dest_y,
  mot_x,
  mot_y,
  search_radius,
  optimum,
  n_failures,
  fail_thresh,
  direction,
  single_rast,
  mortality
)

Arguments

sp

A species object

env

Raster, should represent NDVI or your environmental variable of interest

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)

mortality

Logical, should low energy levels result in death? Default T.

Value

A nx2 dataset containing longitude and latitude points for all n timesteps


abmR documentation built on Aug. 28, 2023, 1:07 a.m.