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
EpiModelobject of classnetsimto 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 thenetsimobject 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 fullnetsimobject without any deletions.- time.stamp
If
TRUE, saves the file with a time stamp in the file name.- compress
Matches the
compressargument for thesavefunction.