Skip to content

Commit

Permalink
Update functions.R
Browse files Browse the repository at this point in the history
`%Y` is incorrect when paired with `%V`. See for more context:

https://bugs.r-project.org/attachment.cgi?id=3252&action=diff
  • Loading branch information
MichaelChirico authored Sep 14, 2023
1 parent 0deca18 commit 6cac7e2
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 6cac7e2

Please sign in to comment.