preprocess_jhu_data | R 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.
preprocess_jhu_data(
issue_date = NULL,
as_of = NULL,
measure = "deaths",
geography = c("US", "global")
)
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" |
tibble with issue_date and data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.