get_truth_path: Construct the file path to a truth file

View source: R/load_truth.R

get_truth_pathR Documentation

Construct the file path to a truth file

Description

Construct the file path to a truth file

Usage

get_truth_path(
  source,
  repo_path,
  target_variable,
  data_location,
  hub = c("US", "ECDC", "FluSight")
)

Arguments

source

character vector specifying where the truths will be loaded from: currently support "JHU", "NYTimes", "HealthData" and "ECDC".

repo_path

path to local clone or remote of the corresponding prediction hub repository.

target_variable

string specifying target type It should be one or more of "cum death", "inc case", "inc death", "inc hosp".

data_location

character specifying the location of truth data. Currently only supports "local_hub_repo" and "remote_hub_repo".

hub

character, which hub to use. Default is "US". Other options are "ECDC" and "FluSight".

Value

character of file path


reichlab/covidHubUtils documentation built on Feb. 6, 2024, 1:42 p.m.