Skip to content

Commit

Permalink
bugfix in extend_lookup
Browse files Browse the repository at this point in the history
failed when a dataset had corrupted columns
  • Loading branch information
DanChaltiel committed Feb 15, 2024
1 parent f27c0f0 commit 08a1ba3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ extend_lookup = function(lookup, ...,
length(unique(rtn[[1]][[1]]))
}
rtn = lookup %>%
filter(map_lgl(dataset, ~!inherits(datasets[[.x]], "error"))) %>%
mutate(
n_id = map_int(dataset, ~f(.x, key_columns$patient_id)),
rows_per_id = round(nrow/n_id, 1),
Expand Down

0 comments on commit 08a1ba3

Please sign in to comment.