Skip to contents

Fetch reporting data from a forecast hub S3 bucket

Usage

# S3 method for class 'hub_data_source'
fetch_reporting_data(
  source,
  reference_dates = "*",
  report_dates = "*",
  locations = "*",
  dedup = c("latest", "earliest"),
  ...
)

Arguments

source

A hub_data_source object

reference_dates

Date vector or "*" for all

report_dates

Date vector or "*" for all

locations

Character vector of locations ("*" for all). Use lowercase two-letter state abbreviations (e.g., "ca", "ny") or "us" for national.

dedup

Character, how to handle multiple as_of dates that fall within the same MMWR epiweek. "latest" (default) keeps the most recent observation; "earliest" keeps the first. A warning is issued whenever duplicates are found.

...

Additional arguments (unused)

Value

data.frame with reporting triangle data