Skip to content

Commit

Permalink
Merge pull request #446 from RichardMN/fix-netherlands-430-remove-hos…
Browse files Browse the repository at this point in the history
…pitalisation

Adjust for Netherlands - remove Hospitalisation data - partial fix for #430
  • Loading branch information
seabbs authored Feb 5, 2022
2 parents e4b57dd + ed1a14d commit 579f853
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
7 changes: 3 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"),
#' @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,6 @@ 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),
Deceased = as.double(.data$Deceased),
level_1_region_code = sub("[a-z].*-", "", .data$Province),
level_1_region_code = paste0(
Expand All @@ -74,8 +73,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.

0 comments on commit 579f853

Please sign in to comment.