Skip to content

Commit

Permalink
Update {dplyr} joins to not give warning in case of multiple matches.
Browse files Browse the repository at this point in the history
Details:
- #7 .
- tidyverse/dplyr#5910 .
  • Loading branch information
echasnovski committed Jan 1, 2023
1 parent f0b832a commit 342b5a5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,13 @@ get_matchups <- function(cr_data) {
select(.data$game, .data$player, .data$score)
class(cr) <- class(tibble::tibble())

left_join(x = cr, y = cr, by = "game", suffix = c("1", "2")) %>%
left_join(
x = cr,
y = cr,
by = "game",
suffix = c("1", "2"),
multiple = "all"
) %>%
as_widecr()
}

Expand Down

0 comments on commit 342b5a5

Please sign in to comment.