record_raw_object | R Documentation |
This function records any object during a simulation to allow its
inspection afterward. The records are stored in dat[["raw.records"]]
during the simulation, where dat
is the main netsim_dat
class
object, and in the netsim
object under the raw.records
collections::queue
object.
record_raw_object(dat, at, label, object)
dat |
Main |
at |
The time where the recording happens. |
label |
The name to give to the recorded object. |
object |
The object to be recorded. |
See the "Time-Varying Parameters" section of the "Working With Model Parameters" vignette.
The updated netsim_dat
main list object.
## Not run:
dat <- record_raw_object(dat, at, "a.df", data.frame(x = 2:200))
dat <- record_raw_object(dat, at, "a.message", "I recorded something")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.