R/main.R

Defines functions download_dataset

download_dataset <- function(radical = "jhu") {
  radical <- ifelse(radical == "ms_br", "ms", radical)
  url <- paste0(
    "https://github.com/sjlva/Covid19BR/blob/master/rds/covid_",
    radical,
    ".rds?raw=true")
  df <- readr::read_rds(url(url))
  return(df)
}
sjlva/covidRdata documentation built on Sept. 29, 2020, 12:52 a.m.