iteration {simecol} | R Documentation |
Solver function to simulate discrete ecological (or other) dynamic
models. It is normally called indirectly from sim
.
iteration(obj, animate = FALSE, ...)
obj |
the simObj object to be iterated |
animate |
animation during the simulation |
... |
optional arguments passed to the plot function if
animate=TRUE |
The solver method iteration
is used to simulate discrete event
models. It creates a local environment in a way that parameters,
inputs and equations are visible within the main function of the
simObj
.
Normally, this function is run indirectly from sim
.
a list of the model outputs (states ...) for each timestep.
data(conway) ## plot after simulation: plot(sim(conway), delay=100) ## plot during simulation sim(conway, animate=TRUE, delay=100)