Open DoraemonTheRobotCat opened 4 years ago
Great initiative! Is there any way to point to the CSV of The Netherlands?
What are the correct file names for The Netherlands?
# COVID19 data for Germany by RKI through Arcgis needs_download <- (!file.exists(file.path("non-git","RKI_COVID19.csv"))) || (as.Date(file.info(file.path("non-git","RKI_COVID19.csv"))$ctime) != Sys.Date()) data_url <- if (needs_download) { "https://opendata.arcgis.com/datasets/dd4580c810204019a7b8eb3e0b329dd6_0.csv" } else { file.path("non-git","RKI_COVID19.csv") } covid19 <- read.csv(data_url, stringsAsFactors = FALSE) if (needs_download) write.csv(covid19, file.path("non-git","RKI_COVID19.csv"))
We used a dedicated German data source. If you want the Dutch data you probably would have to modify the data call to fetch the John Hopkins data source, which would have the Dutch data.
Great initiative! Is there any way to point to the CSV of The Netherlands?
What are the correct file names for The Netherlands?
# COVID19 data for Germany by RKI through Arcgis needs_download <- (!file.exists(file.path("non-git","RKI_COVID19.csv"))) || (as.Date(file.info(file.path("non-git","RKI_COVID19.csv"))$ctime) != Sys.Date()) data_url <- if (needs_download) { "https://opendata.arcgis.com/datasets/dd4580c810204019a7b8eb3e0b329dd6_0.csv" } else { file.path("non-git","RKI_COVID19.csv") } covid19 <- read.csv(data_url, stringsAsFactors = FALSE) if (needs_download) write.csv(covid19, file.path("non-git","RKI_COVID19.csv"))