enriched_jhu_data: Get enriched jhu dataset enriched with country-level metadata

Description Usage Arguments Value Examples

View source: R/jhu_to_excel.R

Description

The purpose of this function is to enrich the JHU dataset with additional country-level metadata and then get the data into a form that can be easily written to excel or used as a "wide-format" tabular dataset.

Usage

1
enriched_jhu_data(cols_to_remove = .cols_to_remove, warn = FALSE)

Arguments

cols_to_remove

a character vector of column names from country_metadata() to remove.

warn

logical(1) defaults to FALSE, sent to countrycode::countrycode to determine whether failed matches should be reported.

Value

A list of three data.frames named deaths, confirmed, and recovered.

Examples

1
2
3
4
5
res = enriched_jhu_data()
colnames(res)
library(dplyr)
head(res)
dplyr::glimpse(res)

vjcitn/sars2app documentation built on Jan. 3, 2022, 12:19 a.m.