Create a Single Sim File per Scenarios Using the Files From netsim_scenarios
Source: R/net.fn.scenarios_run.R
merge_netsim_scenarios_tibble.RdConverts the batch files of each scenario into a single data.frame of
simulation output, saved as df__<scenario>.rds in output_dir. The
batch_number, sim and time columns always come first.
Usage
merge_netsim_scenarios_tibble(
sim_dir,
output_dir,
steps_to_keep,
cols = dplyr::everything()
)Arguments
- sim_dir
The folder where the simulation files are to be stored.
- output_dir
The folder where the merged files will be stored.
- steps_to_keep
Numbers of time steps add the end of the simulation to keep in the
data.frame.- cols
columns to keep in the data.frame. By default all columns are kept. And in any case, thebatch_number,simandtimeare always kept.