Skip to content

Commit

Permalink
Merge pull request #248 from epiforecasts/keep_na
Browse files Browse the repository at this point in the history
keep NAs when putting together data (in the UK)
  • Loading branch information
seabbs authored Apr 9, 2021
2 parents 89e9399 + 592454f commit 012a093
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions R/uk.R
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down

0 comments on commit 012a093

Please sign in to comment.