Skip to content

Commit

Permalink
revert renaming of the temp flag for lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelos Zhu committed Oct 12, 2023
1 parent 9b4172f commit d7d2f0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions R/derive_merged.R
Original file line number Diff line number Diff line change
Expand Up @@ -711,14 +711,14 @@ derive_vars_merged_lookup <- function(dataset,
new_vars = new_vars,
mode = mode,
filter_add = !!filter_add,
exist_flag = temp_exist_flag,
exist_flag = temp_match_flag,
check_type = check_type,
duplicate_msg = duplicate_msg
)

if (print_not_mapped) {
temp_not_mapped <- res %>%
filter(is.na(temp_exist_flag)) %>%
filter(is.na(temp_match_flag)) %>%
distinct(!!!by_vars_left)

if (nrow(temp_not_mapped) > 0) {
Expand All @@ -740,7 +740,7 @@ derive_vars_merged_lookup <- function(dataset,
}
}

res %>% select(-temp_exist_flag)
res %>% select(-temp_match_flag)
}

#' Get list of records not mapped from the lookup table.
Expand Down
1 change: 0 additions & 1 deletion R/globals.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ globalVariables(c(
"temp_from_var",
"temp_to_var",
"temp_match_flag",
"temp_exist_flag",
"temp_dose_freq",
"temp_new_dose_no",
"temp_num_of_doses",
Expand Down

0 comments on commit d7d2f0c

Please sign in to comment.