The master data file from Ward et al. 2014 has 8 datasets combined together in long form. We do some preprocessing here to correct dates, shift all variable names to lowercase characters, and construct a separate data object for each dataset. The format follows that of MATSS (browse the data formats vignette) The resulting object has the names of the datasets and the data objects.

reshape_ward_data(data_file = system.file("extdata", "processed_data",
  "masterDat_2019-06-12.csv", package = "MATSSforecasting", mustWork =
  TRUE), ward_RDS_file = here::here("analysis", "data",
  "ward_fish_data.RDS"))

Arguments

data_file

the path to the raw CSV file from Ward et al. 2014. (The default is bundled with this package.)

ward_RDS_file

the location of the RDS file with the combined datasets that is produced as a result of running reshape_ward_data

Value

a character vector with the names of the database