Skip to content

Commit

Permalink
Use anti-join instead of %in%
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Nov 6, 2023
1 parent 39853ec commit cfa371e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/dedup.R
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ dedup_faers_ascii <- function(data, deleted_cases = NULL) {
)
} else {
out <- unique(
data$demo[!caseid %in% deleted_cases][
data$demo[!deleted_cases, on = "caseid"][
order(-year, -quarter, -fda_dt, i_f_code, -event_dt)
],
by = "primaryid", cols = c(
Expand Down

0 comments on commit cfa371e

Please sign in to comment.