process_model_runs: Process model runs

Description Usage Arguments Value Processing details

View source: R/process_model_runs.r

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
process_model_runs(
  data,
  indices,
  scenarios,
  rootFolder,
  outputScenarioDirs,
  revenueData,
  outputType = "indices",
  nLastYrs
)

Arguments

data

List. The hydra dataList hydradata::hydraDataList

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 process_single_scenario)

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)

Value

Nothing. RDS files are produced

Processing details

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


andybeet/hydramse documentation built on April 16, 2021, 5:23 a.m.