Description Usage Value References Examples
View source: R/get-weekly-flu-report.r
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.
1 |
tbl_df
(also classed with cdcweeklyreport
) with six
columns: year
, week_number
, state
, color
,
label
, subtitle
https://www.cdc.gov/flu/weekly/flureport.xml
1 2 3 4 | ## Not run:
wfr <- get_weekly_flu_report()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.