Skip to content

Commit

Permalink
Merge pull request #3 from alxsrobert/update_fix
Browse files Browse the repository at this point in the history
Fix github action
  • Loading branch information
bprasse authored Feb 15, 2024
2 parents 70a7923 + 7d50e6b commit a4a3c04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion R/functions_import_data/function_import_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,8 @@ import_vacc <- function(country, vacc_ecdc, total = F, national = F){
}

# Convert date_week variable to date
vacc[,date_week := as.character(ISOweek2date(paste0(date_week,"-7")))]
vacc[!grepl("W", date_week),date_week := paste0(as.character(date_week), "-01")]
vacc[grepl("W", date_week),date_week := as.character(ISOweek2date(paste0(date_week,"-7")))]

# Sum doses over different vaccines
cols <- c("dose1", "dose2", "dose3")
Expand Down
3 changes: 2 additions & 1 deletion R/script_model/function_generate_list_output.R
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ generate_list_output <- function(country, range_dates, download, data_file, tota
equations <-
list(ar = ar_terms,
ne = addSeason2formula(reformulate(ne_terms, intercept = TRUE), period = 365),
end = addSeason2formula(reformulate(end_terms, intercept = TRUE))
end = if(country != "FR") addSeason2formula(reformulate(end_terms, intercept = TRUE)) else
reformulate(end_terms, intercept = TRUE)
)
## Run the model
model_fit <-
Expand Down

0 comments on commit a4a3c04

Please sign in to comment.