You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.4 KiB

% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/get_state_data.r
\title{Retrieves state/territory-level influenza statistics from the CDC}
get_state_data(years = as.numeric(format(Sys.Date(), "\%Y")))
\item{years}{a vector of years to retrieve data for (i.e. \code{2014} for CDC
flu season 2014-2015). Default value is the current year and all
\code{years} values should be > \code{1997}}
A \code{data.frame} of state-level data for the specified seasons
(also classed as \code{cdcstatedata})
Uses the data source from the CDC' State-levelFluView
\url{} and provides state flu
reporting data as a single data frame.\cr
This function provides similar data to \code{\link{get_weekly_flu_report}} but
provides more metadata about the reporting sources and has access to more
historical infomation.
There is often a noticeable delay when making the API request to the CDC. This
is not due to a large download size, but the time it takes for their
servers to crunch the data. Wrap the function call in \code{httr::with_verbose}
if you would like to see what's going on.
get_state_data(c(2013, 2014))