Skip to contents

Converts 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, the batch_number, sim and time are always kept.

Value

NULL, invisibly. The merged files are saved in output_dir.