From 10df682ce52d6671e941386ae9472ea78810cdb5 Mon Sep 17 00:00:00 2001 From: Annabella Hines <118386400+Annabella-Hines@users.noreply.github.com> Date: Wed, 27 Nov 2024 11:55:49 -0500 Subject: [PATCH] Update get_target_data.R --- target-data/get_target_data.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-data/get_target_data.R b/target-data/get_target_data.R index c1e61c91..fcb29622 100644 --- a/target-data/get_target_data.R +++ b/target-data/get_target_data.R @@ -21,7 +21,7 @@ fetch_flu <- function(){ dplyr::rename("value" = "totalconfflunewadm", "date"="weekendingdate", "state"="jurisdiction") %>% dplyr::mutate(date = as.Date(date), value = as.numeric(value), - state = str_replace(state, "USA", "US")) + state = stringr::str_replace(state, "USA", "US")) #bind state population data full_data = dplyr::left_join(recent_data, locations, by = join_by("state" == "abbreviation"))