Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust for Netherlands - remove Hospitalisation data - partial fix for #430 #446

Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions R/Netherlands.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Netherlands <- R6::R6Class("Netherlands",
),
# nolint end
#' @field source_data_cols existing columns within the raw data
source_data_cols = c("cases_new", "deaths_new", "hosp_new"),
source_data_cols = c("cases_new", "deaths_new"), #, "hosp_new"
#' @field source_text Plain text description of the source of the data
source_text = "National Institute for Public Health and the Environment (RIVM), Netherlands", # nolint
#' @field source_url Website address for explanation/introduction of the
Expand All @@ -60,7 +60,7 @@ Netherlands <- R6::R6Class("Netherlands",
mutate(
Date_of_publication = ymd(.data$Date_of_publication),
Total_reported = as.double(.data$Total_reported),
Hospital_admission = as.double(.data$Hospital_admission),
#Hospital_admission = as.double(.data$Hospital_admission),
Deceased = as.double(.data$Deceased),
level_1_region_code = sub("[a-z].*-", "", .data$Province),
level_1_region_code = paste0(
Expand All @@ -74,8 +74,8 @@ Netherlands <- R6::R6Class("Netherlands",
level_2_region = .data$Municipality_name,
level_2_region_code = .data$Municipality_code,
cases_new = .data$Total_reported,
deaths_new = .data$Deceased,
hosp_new = .data$Hospital_admission
deaths_new = .data$Deceased #,
#hosp_new = .data$Hospital_admission
)
},

Expand Down
Binary file modified data/all_country_data.rda
Binary file not shown.
Binary file modified tests/testthat/custom_data/Netherlands_level_1.rds
Binary file not shown.
Binary file modified tests/testthat/custom_data/Netherlands_level_2.rds
Binary file not shown.