ilinet: Retrieve ILINet Surveillance Data

View source: R/ilinet.r

ilinetR Documentation

Retrieve ILINet Surveillance Data

Description

The CDC FluView Portal provides in-season and past seasons' national, regional, and state-level outpatient illness and viral surveillance data from both ILINet (Influenza-like Illness Surveillance Network) and WHO/NREVSS (National Respiratory and Enteric Virus Surveillance System).

Usage

ilinet(region = c("national", "hhs", "census", "state"), years = NULL)

Arguments

region

one of "national", "hhs", "census", or "state"

years

a vector of years to retrieve data for (i.e. 2014 for CDC flu season 2014-2015). CDC has data for this API going back to 1997. Default value (NULL) means retrieve all years. NOTE: if you happen to specify a 2-digit season value (i.e. 57 == 2017-2018) the function is smart enough to retrieve by season ID vs convert that to a year.

Details

This function retrieves current and historical ILINet surveillance data for the identified region.

References

Examples

national_ili <- ilinet("national", years = 2017)
## Not run: 
hhs_ili <- ilinet("hhs")
census_ili <- ilinet("census")
state_ili <- ilinet("state")

all_ili <- suppressWarnings(
  suppressMessages(purrr::map_df(c("national", "hhs", "census", "state"), ilinet)))

## End(Not run)

hrbrmstr/cdcfluview documentation built on Nov. 25, 2022, 7:55 p.m.