Learn R Programming

zoltr (version 1.0.2)

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

Description

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

Usage

forecast_data_from_cdc_csv_file(season_start_year, cdc_csv_file)

Value

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

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

Examples

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

Run the code above in your browser using DataLab