Skip to content

Commit b47a69b

Browse files
committed
fix: add "indo" to condition since it's used in the function
1 parent a3ad8cc commit b47a69b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data-raw/simulate-data.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ insert_specific_atc <- function(data, proportion = 0.3) {
152152
# Insert a few cases where purchases of metformin are used for other purposes
153153
# than diabetes.
154154
insert_false_metformin <- function(data, proportion = 0.05) {
155-
if (all(c("atc", "name") %in% colnames(data))) {
155+
if (all(c("atc", "name", "indo") %in% colnames(data))) {
156156
data |>
157157
dplyr::mutate(
158158
atc = dplyr::if_else(

0 commit comments

Comments
 (0)