Skip to content

Commit

Permalink
edits to hosp cols to numeric
Browse files Browse the repository at this point in the history
  • Loading branch information
vpnagraj committed Dec 21, 2021
1 parent 0c43547 commit 3f8565f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scratch/worfklow.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ hosp <- get_hdgov_hosp(mindate="2021-04-01", maxdate="2021-12-12")
tmp_weekly_flu <-
hosp %>%
mutate(date = date - 1) %>%
mutate(flu.admits = as.numeric(flu.admits),
flu.admits.cov = as.numeric(flu.admits.cov)) %>%
mutate(epiweek = lubridate::epiweek(date),
epiyear = lubridate::epiyear(date)) %>%
group_by(epiweek, epiyear) %>%
Expand Down Expand Up @@ -91,3 +93,4 @@ res$forecasts
res$model

plot_forc(res$forecasts, train_dat, test_dat)

0 comments on commit 3f8565f

Please sign in to comment.