Skip to content

Commit

Permalink
call correct object
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Dec 10, 2024
1 parent 59dc5ea commit 6371442
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/estimate_secondary.R
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ estimate_secondary <- function(data,
secondary_reports_dirty <-
reports[, list(date, confirm = secondary, accumulate)]
if (filter_leading_zeros &&
!is.na(reported_cases[date == min(date), "confirm"]) &&
reported_cases[date == min(date), "confirm"] == 0) {
!is.na(secondary_reports_dirty[date == min(date), "confirm"]) &&
secondary_reports_dirty[date == min(date), "confirm"] == 0) {
cli_warn(
"!" = "Filtering initial zero observations in the data. This
functionality will be removed in future versions of EpiNow2. In order
Expand Down

0 comments on commit 6371442

Please sign in to comment.