-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
*_join(x, y, by=c()) should do a cross join #2041
Comments
To me, a separate verb looks like a cleaner solution, and |
Perhaps for interactive or one-off analysis. But when I am using dplyr join inside a reusable function, mathematical consistency trumps "looks cleaner." |
Which result do you expect for a left join of a nonempty data frame with an empty data frame with left_join(iris, mtcars[0,], by = c()) By definition we'd need to return all of |
I agree with that test case. The SQL implementations I've checked with so On Wed, Sep 21, 2016 at 12:25 PM, Kirill Müller notifications@github.com
|
Then it might be worthwhile indeed to support it in dplyr. Nice |
We should clearly think of this test if/when we do #557. Currently this looks like a lot of effort for little gain especially on the C++ side. |
Part of more general #2240 |
It makes sense that inner_join with no
by
orby=NULL
will do natural join, but if I explicitly specify a join on no keys i.e.inner_join(x, y, by=c())
I think it should produce the Cartesian product.The text was updated successfully, but these errors were encountered: