Skip to content

Commit

Permalink
Merge pull request #2 from MichaelChirico/patch-1
Browse files Browse the repository at this point in the history
Use correct ISO year
  • Loading branch information
lucacozzuto authored Jan 9, 2024
2 parents 49c5700 + 6cac7e2 commit d551874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ makePlotCovid <- function(death_web, cases_web, ita_web, title, mypalette) {

data_web<-getDataFromJH(death_web, cases_web)
cases_ita<-getSingleCountryData(data_web, "Italy", "JH")
cases_ita$year_week<-strftime(cases_ita$date, format = "%Y-%V")
cases_ita$year_week<-strftime(cases_ita$date, format = "%G-%V")

cases_ita.agg<-cases_ita %>%
group_by(year_week) %>%
Expand Down

0 comments on commit d551874

Please sign in to comment.