Skip to content

Commit

Permalink
Fix dates in new AB weekly case time series
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanpaulrsoucy committed Oct 7, 2023
1 parent ba8e41e commit 08405fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/ab.R
Original file line number Diff line number Diff line change
Expand Up @@ -464,13 +464,13 @@ process_ab <- function(uuid, val, fmt, ds,
hrs <- rep(d$x$data$name[1:5], each = length(dates[[1]]))
data.frame(
sub_region_1 = hrs,
date = as.Date(unlist(dates)),
date = as.Date(unlist(dates)) + 6, # end of week
value = as.integer(unlist(vals))
) |> helper_ts(loc = "hr", val, prov, convert_to_cum = FALSE)
},
e_fmt()
)
}
},
e_val()
)
},
Expand Down

0 comments on commit 08405fa

Please sign in to comment.