[[
and $
operators provide "shortcuts" for accessing
objects in the simulation environment.
I.e., instead of using envir(sim)$object
or envir(sim)[["object"]]
,
one can simply use sim$object
or sim[["object"]]
.
objs(x, ...)
"objs"(x, ...)
objs(x) <- value
"objs"(x) <- value
"[["(x, i, j, ..., drop)
"[["(x, i) <- value
"$"(x, name)
"$"(x, name) <- value
simList
object from which to extract element(s) or
in which to replace element(s).i
.i
.name
.simList
environment.
objs
can take ...
arguments passed to ls
,
allowing, e.g. all.names=TRUE
objs<-
requires takes a named list of values to be assigned in
the simulation envirment.
SpaDES
, specifically the section 1.2.1 on Simulation Parameters.Other functions to access elements of a simList
object: .addDepends
,
doEvent.checkpoint
, envir
,
events
, globals
,
inputs
, ls.simList
,
ls.str.simList
, modules
,
packages
, params
,
paths
, progressInterval
,
times