View source: R/merge_simfiles.R
merge_simfiles | R Documentation |
Saves an Rdata file containing stochastic network model output
from netsim
function calls with time-stamped file names.
merge_simfiles(
simno,
ftype = "min",
indir = "data/",
vars = NULL,
truncate.at = NULL,
keep.other = FALSE,
verbose = TRUE
)
simno |
First components of the simulation number in the standard format
written by |
ftype |
Type of file to be merged, with either |
indir |
File directory relative to working directory where simulation files are stored. |
vars |
Character vector of variables stored in |
truncate.at |
Left-truncates a simulation epidemiological summary statistics and network statistics at a specified time step. |
keep.other |
If |
verbose |
If |
This function merges individual simulation runs stored in separate Rdata files
into one larger output object for analysis. This function would typically be
used after running netsim_hpc
with an array job specification
(see the vignette) in order to combine individual blocks of simulations into
one complete set.
The simno
argument must therefore be specified as the first component
of the simulation number: what would be passed to the -v
parameter
in qsub
. For example, if one would like to aggregate the two files for
simulation number 1 stored in the sim.n1.1.*
and sim.n1.2.*
files,
the simno
argument would be 1
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.