Get and prepare COVID data.
Pull in current case and death counts from WHO source. For disaggregated China, Taiwan, Hong Kong, and Macau data we pull from JHU or primary sources.
Usage
get_covid_df(sources = c("all", "WHO", "WHO+JHU", "WHO+Primary"))
Arguments
- sources
one of "all", "WHO", "WHO+JHU", "WHO+Primary" specifying the data sources to pull from. See details.
Value
Returns a data frame with n rows and 8 columns, including:
date
date Date of observationiso2code
character ISO 3166-1 alpha-2 country codecountry
character WHO english country namenew_cases
integer Number of new cases reported on datecumulative_cases
integer Number of cumulative cases to datenew_deaths
integer Number of new deaths reported on datecumulative_deaths
integer Number of cumulative deaths to datesource
character Data Source
Details
In legacy versions, the default was to pull "all" sources, which included the WHO case/death time-series and JHU data for China Mainland, HK, Macau, and Taiwan. Due to sun-setting and changes in reporting, we now capture HK and Taiwan data from primary sources ("WHO+Primary"). Note that this also includes JHU data on Macau which will be reported thru Mar 10, 2023 when JHU closes their dashboard.