Unified datasets for a better understanding of COVID-19.
covid19( country = NULL, level = 1, start = "2019-01-01", end = Sys.Date(), raw = FALSE, vintage = FALSE, verbose = TRUE, cache = TRUE )
vector of country names or ISO codes (alpha-2, alpha-3 or numeric).
integer. Granularity level. 1: country-level data. 2: state-level data. 3: city-level data.
the start date of the period of interest.
the end date of the period of interest.
logical. Skip data cleaning? Default
logical. Retrieve the snapshot of the dataset that was generated at the
logical. Print data sources? Default
logical. Memory caching? Significantly improves performance on successive calls. Default
The raw data are cleaned by filling missing dates with
This ensures that all locations share the same grid of dates and no single day is skipped.
NA values are replaced with the previous non-
NA value or
We have invested a lot of time and effort in creating COVID-19 Data Hub, please:
you assume full risk for the use of COVID-19 Data Hub. We try our best to guarantee the data quality and consistency and the continuous filling of the Data Hub. However, it is free software and comes with ABSOLUTELY NO WARRANTY. Reliance on COVID-19 Data Hub for medical guidance or use of COVID-19 Data Hub in commerce is strictly prohibited.
Guidotti, E., Ardia, D., (2020), "COVID-19 Data Hub", Journal of Open Source Software 5(51):2376, doi: 10.21105/joss.02376 .