get_RKI_spatial: get_RKI_spatial

View source: R/get_RKI_spatial.R

get_RKI_spatialR Documentation

get_RKI_spatial

Description

Downloads the latest version of a COVID-19 spatial dataset by the Robert Koch Institute. Please see the README for more information: https://github.com/nevrome/covid19germany

Usage

get_RKI_spatial(
  resolution = "Bundesland",
  urls = c(Bundesland =
    "https://opendata.arcgis.com/datasets/ef4b445a53c1406892257fe63129a8ea_0.zip",
    Landkreis =
    "https://opendata.arcgis.com/datasets/917fc37a709542548cc3be077a786c17_0.zip"),
  cache = T,
  cache_dir = tempdir(),
  cache_max_age = "today"
)

Arguments

resolution

character. Resolution of the spatial data: "Bundesland" or "Landkreis"

urls

named character vector. Data source urls

cache

logical. Should the data be cached?

cache_dir

character. Path to cache directory

cache_max_age

numeric. Maximum age of cache in seconds

Value

An object of class sf with the dataset

Examples


rki_spatial_Bundesland <- get_RKI_spatial()



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