Skip to content

Commit

Permalink
Update QC deaths processing
Browse files Browse the repository at this point in the history
- Censor final three days of death data: "Les décès ayant eu lieu le dimanche, lundi et mardi précédent la mise en ligne du mercredi ne sont pas disponibles."
- ccodwg/CovidTimelineCanada#118
  • Loading branch information
jeanpaulrsoucy committed Oct 12, 2023
1 parent 68f9132 commit 1094323
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/qc.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ process_qc <- function(uuid, val, fmt, ds,
date = .data$Date,
value = .data$dec_cum_tot_n
) %>%
# deaths from most recent Sunday to Tuesday are not reported
# in data posted on Wednesday,
# so we need to remove last three rows from each RSS
dplyr::group_by(.data$sub_region_1) %>%
dplyr::slice(1:(dplyr::n() - 3)) %>%
dplyr::ungroup() %>%
helper_ts(loc = "hr", val, prov, convert_to_cum = FALSE)
},
e_fmt()
Expand Down

0 comments on commit 1094323

Please sign in to comment.