preprocess_jhu_data: Create a tibble of incident and cumulative deaths or cases...

View source: R/jhu_data.R

preprocess_jhu_dataR Documentation

Create a tibble of incident and cumulative deaths or cases based on a specified issue date and measure. This function will also download a specified time series data set if issue_date is not available in pre-built data object.

Description

Create a tibble of incident and cumulative deaths or cases based on a specified issue date and measure. This function will also download a specified time series data set if issue_date is not available in pre-built data object.

Usage

preprocess_jhu_data(
  issue_date = NULL,
  as_of = NULL,
  measure = "deaths",
  geography = c("US", "global")
)

Arguments

issue_date

character issue date (i.e. report date) to use for constructing truths in format 'yyyy-mm-dd'

as_of

character issue date (i.e. report date) to use for constructing truths published as of this date in format 'yyyy-mm-dd'

measure

character vector specifying measure of covid prevalence: 'deaths' or 'cases'

geography

character, which data to read. Default is "US", other option is "global"

Value

tibble with issue_date and data


reichlab/covidData documentation built on April 5, 2024, 5 p.m.