Skip to content

Commit 999e1f3

Browse files
committed
Merge branch '36-add-get_forecast_datar' of O957:CDCgov/hubhelpr into 36-add-get_forecast_datar
2 parents 91d4507 + 95832d7 commit 999e1f3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

R/get_forecast_data.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ get_forecast_data <- function(
7070
dplyr::filter(
7171
.data$reference_date == !!reference_date,
7272
!(.data$location %in% !!excluded_locations),
73-
.data$horizon %in% !!horizons_to_include,
74-
forecasttools::nullable_comparison(
75-
.data$target,
76-
"%in%",
77-
!!targets
78-
)
73+
.data$horizon %in% !!horizons_to_include
7974
) |>
80-
hubData::collect_hub()
75+
hubData::collect_hub() |>
76+
dplyr::filter(forecasttools::nullable_comparison(
77+
.data$target,
78+
"%in%",
79+
!!targets
80+
))
8181

8282
all_forecasts_data <- forecasttools::pivot_hubverse_quantiles_wider(
8383
hubverse_table = current_forecasts,

0 commit comments

Comments
 (0)