Skip to content

Commit 1c0bdc6

Browse files
Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 5169cfe commit 1c0bdc6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

R/update_hub_target_data.R

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,14 @@ update_hub_target_data <- function(
4949
date = lubridate::as_date(.data$weekendingdate),
5050
observation = as.numeric(.data[[nhsn_col_name]]),
5151
jurisdiction = stringr::str_replace(.data$jurisdiction, "USA", "US"),
52-
location = forecasttools::us_location_recode(.data$jurisdiction, "abbr", "code"),
52+
location = forecasttools::us_location_recode(
53+
.data$jurisdiction,
54+
"abbr",
55+
"code"
56+
),
5357
as_of = !!today,
5458
target = glue::glue("wk inc {disease} hosp")
55-
) |>
59+
) |>
5660
dplyr::filter(!(.data$location %in% !!excluded_locations))
5761

5862
hubverse_format_nhsn_data <- nhsn_data |> dplyr::select(-"jurisdiction")

0 commit comments

Comments
 (0)