Skip to content

Commit

Permalink
fix: add "indo" to condition since it's used in the function
Browse files Browse the repository at this point in the history
  • Loading branch information
signekb committed Jun 19, 2024
1 parent a3ad8cc commit b47a69b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data-raw/simulate-data.R
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b47a69b

Please sign in to comment.