Skip to content

Commit

Permalink
chore: #2125 address rcmd error
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelos Zhu committed Sep 27, 2023
1 parent 92bc048 commit b8e4f03
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions R/derive_merged.R
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,11 @@ derive_vars_merged <- function(dataset,
mutate(!!!update_missings) %>%
remove_tmp_vars()
}
dataset %>%
mutate(!!exist_flag_var := ifelse(is.na(!!exist_flag_var), false_value, !!exist_flag_var))
if (!is.null(exist_flag_var)) {
dataset <- dataset %>%
mutate(!!exist_flag_var := ifelse(is.na(!!exist_flag_var), false_value, !!exist_flag_var))
}
dataset
}

#' Merge a Categorization Variable
Expand Down

0 comments on commit b8e4f03

Please sign in to comment.