From b47a69b9ee39a6a2abf042fbeebfeac04c7beb70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Signe=20Kirk=20Br=C3=B8db=C3=A6k?= Date: Wed, 19 Jun 2024 12:16:34 +0200 Subject: [PATCH] fix: add "indo" to condition since it's used in the function --- data-raw/simulate-data.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data-raw/simulate-data.R b/data-raw/simulate-data.R index b57597e..feab337 100644 --- a/data-raw/simulate-data.R +++ b/data-raw/simulate-data.R @@ -152,7 +152,7 @@ insert_specific_atc <- function(data, proportion = 0.3) { # Insert a few cases where purchases of metformin are used for other purposes # than diabetes. insert_false_metformin <- function(data, proportion = 0.05) { - if (all(c("atc", "name") %in% colnames(data))) { + if (all(c("atc", "name", "indo") %in% colnames(data))) { data |> dplyr::mutate( atc = dplyr::if_else(