get_partially_revised_ilinet: Wrapper function around epiforecast::mimicPastEpidataDF to...

Description Usage Arguments Value

View source: R/get-partially-revised-data.R

Description

Wrapper function around epiforecast::mimicPastEpidataDF to return partially revised CDC flu data available as of the specified epiweek (but with missing values filled in with more recent data from ilinet). On top of epiforecast::mimicPastEpidataDF, this function: 1) uses a static pull of data from the delphi API, stored in the data directory of this package; 2) subsets data to a specified region; and 3) drops some occasional extra rows of NA's at the end of the output from epiforecast::mimicPastEpidataDF.

Usage

1
get_partially_revised_ilinet(region_str, epiweek_str)

Arguments

region_str

character defining region of interest, must be in c("nat", paste0("hhs", 1:10))

epiweek_str

character string defining an epiweek in YYYYWW format

Value

a dataset in similar format to that returned by the Delphi epidata API


reichlab/2017-2018-cdc-flu-contest documentation built on May 24, 2019, 6:17 a.m.