Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output from merge #4677

Open
thorek1 opened this issue Aug 18, 2020 · 1 comment
Open

output from merge #4677

thorek1 opened this issue Aug 18, 2020 · 1 comment
Labels
feature request joins non-equi joins rolling, overlapping, non-equi joins top request One of our most-requested issues

Comments

@thorek1
Copy link

thorek1 commented Aug 18, 2020

It would be great to have some output on the merge operation like:

  • Rows in x
  • Rows in y
  • Matched rows
  • Total rows after merge

This feature would make it easier to understand what happened.

A verbose option could do: merge(...,verbose = T) for example

@jangorecki jangorecki added joins non-equi joins rolling, overlapping, non-equi joins labels Aug 26, 2020
@jangorecki jangorecki changed the title feature request: output from merge output from merge Aug 26, 2020
ycphs added a commit to ycphs/data.table that referenced this issue Sep 22, 2020
@ycphs ycphs mentioned this issue Sep 22, 2020
@grantmcdermott
Copy link
Contributor

I opened #5298 (now closed) before being flagged as a dup.

Just to add that information about keys would be valuable too (see: #4888 and #4891).

Also worth noting that the tidylog package largely provides this behaviour for dplyr joins.

library(dplyr, warn.conflicts = FALSE)
library(tidylog, warn.conflicts = FALSE)

x = data.frame(A = 1:5, B = 6:10)
y = data.frame(A = c(1, 4), C = LETTERS[c(1, 4)])

left_join(x, y)
#> Joining, by = "A"
#> left_join: added one column (C)
#>            > rows only in x   3
#>            > rows only in y  (0)
#>            > matched rows     2
#>            >                 ===
#>            > rows total       5
#>   A  B    C
#> 1 1  6    A
#> 2 2  7 <NA>
#> 3 3  8 <NA>
#> 4 4  9    D
#> 5 5 10 <NA>

Created on 2021-12-27 by the reprex package (v2.0.1)

@MichaelChirico MichaelChirico added the top request One of our most-requested issues label Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request joins non-equi joins rolling, overlapping, non-equi joins top request One of our most-requested issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants