From 5e9bf8b11ceb89c386bea399186819bd574f792e Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Wed, 13 Dec 2023 12:02:00 +0000 Subject: [PATCH] uploads --- DESCRIPTION | 2 +- NEWS.md | 4 ++++ R/impact_meta.R | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index ce30233..27ddbcb 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -34,6 +34,6 @@ Suggests: RSQLite, withr Remotes: reside-ic/fakerbase -RoxygenNote: 7.2.1 +RoxygenNote: 7.2.3 VignetteBuilder: knitr Config/testthat/edition: 3 diff --git a/NEWS.md b/NEWS.md index 93adf9f..516fc38 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +# vimpact 0.1.1 + +* Able to recognise different no-vaccination scenario types. + # vimpact 0.1.0 * Increase flexibility - recognize new activity type, compare impact between different scenario types. diff --git a/R/impact_meta.R b/R/impact_meta.R index 5f9c2e7..9683078 100644 --- a/R/impact_meta.R +++ b/R/impact_meta.R @@ -121,7 +121,7 @@ get_meta_from_recipe <- function(default_recipe = TRUE, method = "method0", reci meta_all <- DBI::dbGetQuery(con, sql) ## remove yf reactive sias - otherwise cannot match with recipe - l <- meta_all$scenario_type == "novac" + l <- grepl("novac", meta_all$scenario_type) j <- meta_all$gavi_support_level == "none" meta_all$vaccine[l & j] <- "none" meta_all$activity_type[i & j] <- "none"