Format stock assessment output files to a standardized format.

convert_output(file, model = NULL, fleet_names = NULL, save_dir = NULL)

Arguments

file

Assessment model output file path

model

Assessment model used in evaluation ("ss3", "bam", "asap", "fims", "amak", "ms-java", "wham", "mas").

fleet_names

Names of fleets in the assessment model as shortened in the output file. If fleet names are not properly read, then indicate the fleets names as an acronym in a vector

save_dir

File path to save the converted output file.

Value

A reformatted and standardized version of assessment model results for application in building a stock assessment reports and to easily adapt results among regional assessments. The resulting object is simply a transformed and machine readable version of a model output file. Converted data frame is always returned. It will also be saved if save_dir is not NULL.

Author

Samantha Schiano

Examples

if (FALSE) { # \dontrun{
convert_output(
  file = here::here("model1", "Report.sso"),
  model = "ss3",
  fleet_names = c("TWL", "NONTWL"),
  save_dir = here::here("standard_output.rda")
)
} # }