Description Usage Arguments Value Processing details
View source: R/process_model_runs.r
Reads in all of the model run data, processes it, and writes to an .rds file. Details of the processing can be found in section below. Contents of rds file are tidy and used in plotting routines
1 2 3 4 5 6 7 8 9 10 | process_model_runs(
data,
indices,
scenarios,
rootFolder,
outputScenarioDirs,
revenueData,
outputType = "indices",
nLastYrs
)
|
data |
List. The hydra dataList |
indices |
Character vector. The names of the indices of interest from the model run. |
scenarios |
Character vector. The names of the scenario. Defined as a harvest control rul with a max exploitation rate |
rootFolder |
root folder holding all run info |
outputScenarioDirs |
list of scenario directories under the rootFolder |
revenueData |
Data frame (see |
outputType |
Character string. Name of folder where Hydra output files are stored ("indices","diagnostics") |
nLastYrs |
Numeric scalar. Number of trailing years in each run to take mean over. Default = 20 (Last 20 yrs of sim) |
Nothing. RDS files are produced
A model run (scenario) is considered to be n simulations of the Hydra model. Stochasticity differentiates each simulation.
Each scenario/ model run is processed as in process_single_scenario
. All of the processed scenarios and the relevant indices are then exported
as an RDS file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.