flusight: Tools for working with FluSight forecasts

Description Usage Arguments Details Value Examples

Description

These functions are used to convert an original FluSight-formatted csv file to predx data frame.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15

Arguments

file

A csv file formatted for the FluSight forecasting challenge.

Details

Note that if point forecasts (optional in the FluSight challenge) are included but are NAs, they will be removed (NA is not allowed in the Point class).

Value

A predx data frame.

Examples

1
2
3
csv_tempfile <- tempfile('EW42-Hist-Avg-2018-10-29', fileext='.csv')
write.csv(flusightdemo, csv_tempfile, row.names=F)
import_flusight_csv(csv_tempfile)

cdcepi/predx documentation built on Dec. 29, 2019, 4:58 p.m.