From 592454f8a4a3cb017a053174427cbd561bc90041 Mon Sep 17 00:00:00 2001 From: Sebastian Funk Date: Thu, 8 Apr 2021 15:34:10 +0100 Subject: [PATCH] keep NAs --- R/uk.R | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/R/uk.R b/R/uk.R index 522a6b41..d64a3e44 100644 --- a/R/uk.R +++ b/R/uk.R @@ -119,12 +119,12 @@ Also adding new variable: hosp_new_first_admissions. This is NHS data for first ) %>% dplyr::group_by(date, region_level_1) %>% dplyr::summarise( - cases_new = sum(cases_new, na.rm = TRUE), - cases_total = sum(cases_total, na.rm = TRUE), - deaths_new = sum(deaths_new, na.rm = TRUE), - deaths_total = sum(deaths_total, na.rm = TRUE), - hosp_new = sum(hosp_new, na.rm = TRUE), - hosp_total = sum(hosp_total, na.rm = TRUE), + cases_new = sum(cases_new), + cases_total = sum(cases_total), + deaths_new = sum(deaths_new), + deaths_total = sum(deaths_total), + hosp_new = sum(hosp_new), + hosp_total = sum(hosp_total), .groups = "drop" )