Downloads non-pharmaceutical interventions (NPI) data related to Covid-19 from the ACAPS governmental measures database (https://www.acaps.org/covid19-government-measures-dataset). Since ACAPS is no longer updating this data since December 12, 2020 historic data is downloaded and calling the function with cache = FALSE yields a warning.

download_acaps_npi_data(silent = FALSE, cached = FALSE)

Arguments

silent

Whether you want the function to send some status messages to the console. Might be informative as downloading will take some time and thus defaults to TRUE.

cached

Whether you want to download the cached version of the data from the tidycovid19 Github repository instead of retrieving the data from the authorative source. Downloading the cached version is faster and the cache is updated daily. Defaults to FALSE.

Value

A data frame containing the data, organized by intervention. It includes a timestamp variable indicating the time of data retrieval.

Examples

df <- download_acaps_npi_data(silent = TRUE, cached = TRUE) df %>% dplyr::group_by(country) %>% dplyr::summarise(number_of_interventions = dplyr::n()) %>% dplyr::arrange(-number_of_interventions)
#> # A tibble: 193 × 2 #> country number_of_interventions #> <chr> <int> #> 1 United Kingdom 650 #> 2 Australia 554 #> 3 United States 486 #> 4 Philippines 448 #> 5 Denmark 353 #> 6 Canada 329 #> 7 New Zealand 303 #> 8 Sri Lanka 300 #> 9 Portugal 294 #> 10 Malaysia 291 #> # ℹ 183 more rows