R/get-results.r
get_results_scenario.Rd
Extract results from all iterations inside a supplied scenario folder. The function writes the following .csv files to the scenario folder
scalar metrics with one value per iteration (e.g. \(R_0\), \(h\)),
a timeseries data ('ts') which contains multiple values per iteration (e.g. \(SSB_y\) for a range of years \(y\)), and
residuals on the log scale from the surveys across all iterations; this functionality is currently disabled and not tested.
get_results_scenario(scenario, directory = getwd(), overwrite_files = FALSE)
A single character giving the scenario from which to extract results.
The directory which contains the scenario folder.
A boolean (default is FALSE
) for whether to delete
any files previously created with this function. This is intended to be
used if iterations were added since the last time it was called, or any
changes were made to this function.
get_results_all()
loops through these .csv files and
combines them together into a single "final" dataframe.
Other get-results:
get_results_all()
,
get_results_derived()
,
get_results_scalar()
,
get_results_timeseries()