Saves an Rdata file containing stochastic network model output
from netsim
function calls with time-stamped file names.
Usage
savesim(
sim,
data.dir = "data/",
save.min = TRUE,
save.max = TRUE,
time.stamp = TRUE,
compress = FALSE
)
Arguments
- sim
An
EpiModel
object of classnetsim
to be saved to an Rdata file.- data.dir
Path to save data files. Directory will be created if it does not already exist.
- save.min
If
TRUE
, saves a small version of thenetsim
object in which large elements of the data structure like the network object and the transmission data frame are removed. The resulting name for this small file will have ".min" appended at the end.- save.max
If
TRUE
, saves the fullnetsim
object without any deletions.- time.stamp
If
TRUE
, saves the file with a time stamp in the file name.- compress
Matches the
compress
argument for thesave
function.