get_truth_data: Get Local Truth Data

View source: R/utils.R

get_truth_dataR Documentation

Get Local Truth Data

Description

Get Local Truth Data

Usage

get_truth_data(dir, range = "daily", type = "incident", target = "cases", locs)

Arguments

dir

A character string indicating the path to the target data folder.

range

A character string indicating the range of the data. Supported options are "daily" or "weekly".

type

A character string indicating the type of data to load. Supports either "incident" or "cumulative'.

target

A character string indicating the target type. Supports either "cases" or "deaths".

locs

A character vector of target locations to filter for (by code).

Value

A data table of required truth data.


epiforecasts/europe-covid-forecast documentation built on Jan. 15, 2025, 8:57 p.m.