Create a Single Sim File per Scenarios Using the Files From netsim_scenarios
Source: R/netsim_scenarios.R
merge_netsim_scenarios.Rd
Create 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
)
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 originalx
andy
elements. Note: transmission matrices only saved when (save.transmat == TRUE
).- keep.network
If
TRUE
, keep thenetworkDynamic
objects from the originalx
andy
elements. Note: network only saved when (tergmLite == FALSE
).- keep.nwstats
If
TRUE
, keep the network statistics (as set by thenwstats.formula
parameter incontrol.netsim
) from the originalx
andy
elements.- keep.other
If
TRUE
, keep the other simulation elements (as set by thesave.other
parameter incontrol.netsim
) from the originalx
andy
elements.- param.error
If
TRUE
, ifx
andy
have different params (inparam.net
) or controls (passed incontrol.net
) an error will prevent the merge. UseFALSE
to override that check.- keep.diss.stats
If
TRUE
, keepdiss.stats
from the originalx
andy
objects.- truncate.at
Time step at which to left-truncate the time series.