jhu_data_to_excel | R Documentation |
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.
jhu_data_to_excel( dat = jhu_data(), file = NA, cols_to_remove = c("callingCodes", "altSpellings", "latlng", "demonym", "timezones", "nativeName", "currencies", "languages", "translations", "flag", "regionalBlocs"), ... )
dat |
a data.frame-like object with at least column
|
file |
character(1) filename to which to save excel
file. If specified, use the write.xlsx() function from the
openxlsx package to create (or overwrite) the file of that
name. The excel file will have one tab for each of the |
cols_to_remove |
a character vector of column names from
|
... |
passed to write.xlsx |
A list of three data.frames
named deaths
, confirmed
,
and recovered
.
This function is really a utility function to provide an excel format of data to folks more familiar with excel than with R.
xls_form = jhu_data_to_excel() names(xls_form) head(xls_form[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.