twentytitus / covid19-R0-germany

Estimating the effective R0 of COVID-19 based on regional data for Germany
MIT License
3 stars 5 forks source link

The Netherlands #2

Open DoraemonTheRobotCat opened 4 years ago

DoraemonTheRobotCat commented 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"))

mhoehle commented 4 years ago

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.