| lv3 {simecol} | R Documentation |
simecol example: predator prey-model with three equations: predator, prey and resource (e.g. nutriens, grassland).
data(lv3)
A valid S4 object according to the odeModel
specification. The object contains the following slots:
mainparmscded),fginputstimesinits, p and k.
spksolver
simecol-package,
sim,
parms,
init,
times.
data(lv3)
plot(sim(lv3))
solver(lv3) <- "lsoda"
times(lv3)["by"] <- 5 # set masximum external time step to a large value
plot(sim(lv3)) # wrong! automatic time step overlooks internal inputs
plot(sim(lv3, hmax=1)) # integration with correct maximum internal time step