Skip to content

Commit e40f4e2

Browse files
authored
exclude nhsn non-mandatory reporting data (#143)
1 parent 07e2cbd commit e40f4e2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

R/write_viz_target_data.R

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,15 @@ write_viz_target_data <- function(
7575
disease,
7676
start_date = start_date,
7777
end_date = end_date
78-
)
78+
) |>
79+
# Remove data for reporting dates May 1, 2024 – October 31,
80+
# 2024 due to the absence of a reporting mandate. Reporting
81+
# rates during this period were much lower,
82+
# and data not comparable to other time periods.
83+
dplyr::filter(
84+
!(.data$date >= lubridate::as_date("2024-05-01") &
85+
.data$date <= lubridate::as_date("2024-10-31"))
86+
)
7987
} else {
8088
NULL
8189
}

0 commit comments

Comments
 (0)