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

View source: R/jhu_to_excel.R

enriched_jhu_dataR Documentation

Get enriched jhu dataset enriched with country-level metadata

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

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

res = enriched_jhu_data()
colnames(res)
library(dplyr)
head(res)
dplyr::glimpse(res)


seandavi/sars2pack documentation built on May 13, 2022, 3:41 p.m.