R/get_data.R

Defines functions get_all_national_cases

Documented in get_all_national_cases

#' Get a detailed dataset of  all reported case  in the Netherlands
#'
#'
#' @return Returns a dataframe of results containing detalied Covid-19 cases in the Netherlands
#' @export
get_all_national_cases <- function(){

  url <- 'https://data.rivm.nl/covid-19/COVID-19_casus_landelijk.json'
  landelijk <- jsonlite::fromJSON(url)
  tibble::as_tibble(landelijk)
  landelijk


}
mcnakhaee/CoronaWatchNL documentation built on Jan. 1, 2021, 9:24 a.m.