Skip to contents

Gather target truth data from a forecast hub.

Usage

gather_hub_target_data(
  hub_path,
  target_data_rel_path = fs::path("target-data", "target-hospital-admissions.csv"),
  file_format = NULL
)

Arguments

hub_path

Local path to hub.

target_data_rel_path

The path to the target data file relative to forecast hub root directory. Defaults to the path in the FluSight Forecast Hub.

file_format

Format of the target data file to read. Passed to read_tabular_file() One of "tsv", "csv", "parquet". If NULL, will be inferred from the file extension. Default NULL.

Value

Table of target data