Skip to content

Commit

Permalink
fix USA
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuele-guidotti committed Mar 13, 2021
1 parent 180fcba commit 94f15a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/iso_USA.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ USA <- function(level, cache){
if(level==2){

# tests, hospitalized and icu
h <- healthdata_gov(level = level, cache = cache)
h$id <- id(h$state, iso = "USA", ds = "healthdata_gov", level = level)
# h <- healthdata_gov(level = level, cache = cache)
# h$id <- id(h$state, iso = "USA", ds = "healthdata_gov", level = level)

# confirmed and deaths
n <- nytimes_git(cache = cache, level = level)
Expand All @@ -32,7 +32,7 @@ USA <- function(level, cache){
# merge
key <- c("date", "id")
x <- n[,c(key, "confirmed", "deaths")] %>%
dplyr::full_join(h[,c(key, "tests", "hosp", "icu")], by = key) %>%
# dplyr::full_join(h[,c(key, "tests", "hosp", "icu")], by = key) %>%
dplyr::full_join(v[,c(key, "vaccines")], by = key) %>%
dplyr::full_join(r[,c(key, "recovered", "vent")], by = key)

Expand Down

0 comments on commit 94f15a1

Please sign in to comment.