Skip to content

Commit 1523d41

Browse files
committed
fix: put the round down operation up top
1 parent b2a0f9f commit 1523d41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/flu_hosp_prod.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ end_date <- Sys.Date()
1616
forecast_generation_date <- Sys.Date()
1717
# Usually, the forecast_date is the same as the generation date, but you can
1818
# override this. It should be a Wednesday.
19-
forecast_date <- Sys.Date()
19+
forecast_date <- round_date(forecast_generation_date, "weeks", week_start = 3)
2020
# If doing backfill, you can set the forecast_date to a sequence of dates.
2121
# forecast_date <- seq.Date(as.Date("2024-11-20"), Sys.Date(), by = 7L)
2222
# forecast_generation_date needs to follow suit, but it's more complicated

0 commit comments

Comments
 (0)