This function returns weekly state and/or national clinical laboratory percent positivity data from the NREVSS reporting instrument via the CDC FluView API.
Value
A tibble with the following columns:
- abbreviation: Abbreviation for the location 
- location: FIPS code for the location 
- epiyear: Year of reporting (in epidemiological week calendar) 
- epiweek: Week of reporting (in epidemiological week calendar) 
- week_start: Date of beginning (Sunday) of the given epidemiological week 
- p_positive: Percentage of positive specimens 
- n_positive: Total number of positive specimens 
- total: Total number of specimens tested 
Examples
if (FALSE) { # \dontrun{
# Get all clinical lab flu positivity data
all_clin <- get_cdc_clin()
all_clin
# Alternatively look at a specific location and time
# This 2021 will return weekly data
# Starting at beginning of 2021/22 season
# Ending the week before start of 2022/23 season
va_clin <-
  get_cdc_clin(region = "state", years = 2021) %>%
  dplyr::filter(location == "51")
va_clin
} # }