get_RKI_timeseries: get_RKI_timeseries

View source: R/get_RKI_timeseries.R

get_RKI_timeseriesR Documentation

get_RKI_timeseries

Description

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

Usage

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
)

Arguments

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.

Value

A tibble with the dataset

Examples


rki_timeseries <- get_RKI_timeseries()



nevrome/covid19germany documentation built on Nov. 2, 2022, 12:25 a.m.