Learn R Programming

EpiModel (version 2.2.1)

record_raw_object: Record an Arbitrary Object During a Simulation

Description

This function records any object during a simulation to allow it's inspection afterward. The records are stored in dat[["raw.records"]] during the simulation and in the netsim object under the raw.records sublists.

Usage

record_raw_object(dat, at, label, object)

Value

The Master list object

Arguments

dat

a Master list object of network models

at

the time where the recording happens

label

the name to give to the recorded object

object

the object to be recorded

Details

See the "Time Varying Attributes" vignette

Examples

Run this code
if (FALSE) {

dat <- record_raw_object(dat, at, "a.df", data.frame(x = 2:200))
dat <- record_raw_object(dat, at, "a.message", "I recorded something")

}

Run the code above in your browser using DataLab