run_model {spdynmod} | R Documentation |
Run the model.
Description
Model solving function using ode.2D from the 'deSolve' package.
Usage
run_model(pgr_rb = 0.005, pgr_sm = 0.2, rnd = FALSE, method = "euler",
TS = 0.25)
Arguments
pgr_rb |
potential growth rate of reed beds |
pgr_sm |
potential growth rate of salt marsh |
rnd |
create random initial state variables map. It is calculated based on a script adapted from Murray Efford (University of Auckland, New Zealand) and Santiago Saura (Universidad Politecnica de Madrid, Spain). This option requires that the igraph package is available. |
method |
integration method: "lsodes", "euler", "rk4", "ode23", "ode45", "adams", "iteration" |
TS |
time step |
Value
the function outputs a matrix named "out" which contains the model simulated values for every pixel, time step and state variable.
Examples
## Not run run_model()
[Package spdynmod version 1.1.6 Index]