Description Usage Arguments Value
View source: R/process-ward-data.R
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.
1 2 3 4 | 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"))
|
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 |
a character vector with the names of the database
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.