Skip to content

Commit

Permalink
address errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelos Zhu committed Sep 28, 2023
1 parent b8e4f03 commit 179283d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/derive_merged.R
Original file line number Diff line number Diff line change
Expand Up @@ -429,14 +429,14 @@ derive_vars_merged <- function(dataset,
)
names(update_missings) <- names(missing_values)
dataset <- dataset %>%
mutate(!!!update_missings) %>%
remove_tmp_vars()
mutate(!!!update_missings)
}
if (!is.null(exist_flag_var)) {
dataset <- dataset %>%
mutate(!!exist_flag_var := ifelse(is.na(!!exist_flag_var), false_value, !!exist_flag_var))
}
dataset
dataset %>%
remove_tmp_vars()
}

#' Merge a Categorization Variable
Expand Down

0 comments on commit 179283d

Please sign in to comment.