View source: R/get_RKI_timeseries.R
get_RKI_timeseries | R Documentation |
Downloads the latest version of a COVID-19 timeseries dataset by the Robert Koch Institute. Please see the README for more information: https://github.com/nevrome/covid19germany
get_RKI_timeseries( url = paste0("https://www.arcgis.com", "/sharing/rest/content/items/f10774f1c63e40168479a1feb6c7ca74/data"), cache = T, cache_dir = tempdir(), cache_max_age = "today", raw_only = F, timeout_for_download = 1000 )
url |
character. Data source url |
cache |
logical. Should the data be cached? |
cache_dir |
character. Path to cache directory |
cache_max_age |
numeric. Maximum age of cache in seconds or "today" |
raw_only |
logical. Do not apply covid19germany filters to RKI data (raw_only = T) or do filter them (default, raw_only = F) |
timeout_for_download |
integer. The download of the raw data can take a long time with slow internet connections. It may fail then when the timeout limit for download.file is reached. This option allows to increase it. |
A tibble with the dataset
rki_timeseries <- get_RKI_timeseries()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.