Skip to content

Commit

Permalink
Update get_target_data.R
Browse files Browse the repository at this point in the history
  • Loading branch information
Annabella-Hines authored Nov 27, 2024
1 parent dbed841 commit 10df682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target-data/get_target_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 10df682

Please sign in to comment.