Skip to content

Commit

Permalink
only select unique rows for joining
Browse files Browse the repository at this point in the history
  • Loading branch information
EhrmannS committed Jan 8, 2024
1 parent 97ce27f commit 39b488c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/edit_matches.R
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ edit_matches <- function(new, target = NULL, source = NULL, ontology = NULL,
if(!all(is.na(joined$dist))){
joined <- joined %>%
select(-label.x, -label.y) %>%
distinct() %>%
arrange(dist) %>%
mutate(dist = paste0("dist_", dist)) %>%
pivot_wider(names_from = dist, values_from = label_harm)
Expand Down

0 comments on commit 39b488c

Please sign in to comment.