Skip to content

Commit

Permalink
bugfix in get_key_cols
Browse files Browse the repository at this point in the history
fixes #13
  • Loading branch information
DanChaltiel committed Dec 1, 2023
1 parent cb9c347 commit a154329
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ get_key_cols = function(lookup=getOption("edc_lookup")){
rtn = lookup %>%
select(dataset, names) %>%
mutate(
patient_id=map_chr(names, ~.x[tolower(.x) %in% tolower(patient_id)] %0% NA),
crfname=map_chr(names, ~.x[tolower(.x) %in% tolower(crfname)] %0% NA)
patient_id=map_chr(names, ~.x[tolower(.x) %in% tolower(patient_id)][1] %0% NA),
crfname=map_chr(names, ~.x[tolower(.x) %in% tolower(crfname)][1] %0% NA)
)

verbose = getOption("edc_get_key_cols_verbose", FALSE)
Expand Down

0 comments on commit a154329

Please sign in to comment.