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

Description Usage Arguments Value Examples

View source: R/cdc.R

Description

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

Usage

1
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

1
2
3
4
## Not run: 
  forecast_data <- forecast_data_from_cdc_csv_file(2016, "my_forecast.cdc.csv")

## End(Not run)

zoltr documentation built on April 17, 2020, 1:15 a.m.