Create a Single Sim File per Scenarios Using the Files From netsim_scenarios
Source: R/netsim_scenarios.R
merge_netsim_scenarios.RdCreate a Single Sim File per Scenarios Using the Files From
netsim_scenarios
Usage
merge_netsim_scenarios(
sim_dir,
output_dir,
keep.transmat = TRUE,
keep.network = TRUE,
keep.nwstats = TRUE,
keep.other = TRUE,
param.error = FALSE,
keep.diss.stats = TRUE,
truncate.at = NULL,
keep.run = TRUE,
keep.cumulative.edgelist = FALSE,
keep.attr.history = TRUE
)Arguments
- sim_dir
The folder where the simulation files are to be stored.
- output_dir
The folder where the merged files will be stored.
- keep.transmat
If
TRUE, keep the transmission matrices from the originalxandyelements. Note: transmission matrices only saved when (save.transmat == TRUE).- keep.network
If
TRUE, keep thenetworkDynamicobjects from the originalxandyelements. Note: network only saved when (tergmLite == FALSE).- keep.nwstats
If
TRUE, keep the network statistics (as set by thenwstats.formulaparameter incontrol.net) from the originalxandyelements.- keep.other
If
TRUE, keep the other simulation elements (as set by thesave.otherparameter incontrol.net) from the originalxandyelements. Elements with their ownkeep.*argument (e.g.run) follow that argument instead.- param.error
If
TRUE, ifxandyhave different params (inparam.net()) or controls (passed incontrol.net()) an error will prevent the merge. UseFALSEto override that check. The controls for how the runs were executed rather than what they simulated (nsims,ncores,verbose,verbose.int, and the checkpoint settings) may differ.- keep.diss.stats
If
TRUE, keepdiss.statsfrom the originalxandyobjects.- truncate.at
Time step at which to left-truncate the time series.
- keep.run
If
TRUE, keep therunsublists (as set by thesave.runparameter incontrol.net) from the originalxandyelements. These are required to restart from a simulation of the merged object innetsim(), selected withget_sims().- keep.cumulative.edgelist
If
TRUE, keep the cumulative edgelists (as set by thesave.cumulative.edgelistparameter incontrol.net) from the originalxandyelements.FALSEby default, as these grow with the length of the simulation.- keep.attr.history
If
TRUE, keep the attribute histories (as set byrecord_attr_history()) from the originalxandyelements.