The covid19 package provides data in tidy format from the Johns Hopkins COVID19 Dashboard for the Novel Coronavirus Epidemic(COVID-19). The data is pulled daily from the Johns Hopkins University Centre for Systems Science and Engineering repository
You can install the latest version of the package from Github as follows(package is updated daily):
#install.packages("devtools")
devtools::install_github("ottoman91/covid19")
The following is a description of the variables in the covid19 dataset
Variable | Definition |
---|---|
country_region |
Name of Country |
province_state |
Name of province/state, if available |
date |
date at which the number of cases was recorded |
lat |
latitude of the location where the data was recorded |
long |
longitude of the location where the data was recorded |
cases |
number of cases recorded on specific date |
status |
determines whether the cases were for confirmed, recovered, or death |
The raw data was pulled and compiled by the Johns Hopkins University Center for Systems Science and Engineering (JHU CCSE) from the following :
- World Health Organization (WHO): https://www.who.int/
- DXY.cn. Pneumonia. 2020. http://3g.dxy.cn/newh5/view/pneumonia.
- BNO News: https://bnonews.com/index.php/2020/02/the-latest-coronavirus-cases/
- National Health Commission of the People’s Republic of China (NHC): http:://www.nhc.gov.cn/xcs/yqtb/list_gzbd.shtml
- China CDC (CCDC): http:://weekly.chinacdc.cn/news/TrackingtheEpidemic.htm
- Hong Kong Department of Health: https://www.chp.gov.hk/en/features/102465.html
- Macau Government: https://www.ssm.gov.mo/portal/
- Taiwan CDC: https://sites.google.com/cdc.gov.tw/2019ncov/taiwan?authuser=0
- US CDC: https://www.cdc.gov/coronavirus/2019-ncov/index.html
- Government of Canada: https://www.canada.ca/en/public-health/services/diseases/coronavirus.html
- Australia Government Department of Health: https://www.health.gov.au/news/coronavirus-update-at-a-glance
- European Centre for Disease Prevention and Control (ECDC): https://www.ecdc.europa.eu/en/geographical-distribution-2019-ncov-cases
This is my first R package, so apologies in advance for any mistakes. The following sources were valuable while I was figuring out how to create this package.
-
Rami Krispin and his coronavirus data package.
-
This talk by Jim Hester on creating your own R package
-
The Package Development Cheat Sheet from RStudio