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"))Value
Returns a data frame with n rows and 8 columns, including:
datedate Date of observationiso2codecharacter ISO 3166-1 alpha-2 country codecountrycharacter WHO english country namenew_casesinteger Number of new cases reported on datecumulative_casesinteger Number of cumulative cases to datenew_deathsinteger Number of new deaths reported on datecumulative_deathsinteger Number of cumulative deaths to datesourcecharacter 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.