Learn R Programming

cdcfluview (version 0.9.4)

get_weekly_flu_report: Retrieves (high-level) weekly (XML) influenza surveillance report from the CDC

Description

The CDC publishes a weekly influenza report detailing high-level flu activity per-state. They also publish a data file (see References) of historical report readings. This function reads that XML file and produces a long data_frame with the historical surveillance readings.

This function provides similar data to get_state_data but without the reporting source metadata and a limit on the historical flu information.

Usage

get_weekly_flu_report()

Arguments

Value

tbl_df (also classed with cdcweeklyreport) with six columns: year, week_number, state, color, label, subtitle

References

https://www.cdc.gov/flu/weekly/flureport.xml

Examples

Run this code
# NOT RUN {
wfr <- get_weekly_flu_report()
# }

Run the code above in your browser using DataLab