Loads and converts a CDC CSV file to Zoltar's native list format

forecast_data_from_cdc_csv_file(season_start_year, cdc_csv_file)

Arguments

season_start_year

An integer specifying the "season" that cdc_csv_file is in. Used to convert EWs to YYYY_MM_DD_DATE_FORMAT. zoltr uses week 30 as the season breakpoint, e.g. the "2016/2017 season" starts with

cdc_csv_file

A CDC CSV file

Value

cdc_csv_file's data as Zoltar's native list format, but only the "predictions" item, and not "meta"

Examples

if (FALSE) {
  forecast_data <- forecast_data_from_cdc_csv_file(2016, "my_forecast.cdc.csv")
}