# NOT RUN {
# This function assumes network$multRun() has been performed, or several
# network$oneRun() have been performed and all of the data has been split
# and aggregated.
# read/write paths
fPath <- "path/to/folder/ofFolders/with/data"
oPath <- "my/path/output"
# here, only calculate mean, no quantiles
# no return value
calcQuantiles(readDir = fPath, writeDir = oPath, mean = TRUE,
quantiles = NULL)
# here, calculate 2.5% and 97.5% quantiles
calcQuantiles(readDir = fPath, writeDir = oPath, mean = FALSE,
quantiles = c(0.025, 0.975))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab