-
Notifications
You must be signed in to change notification settings - Fork 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
sort = FALSE does't generate equivalent results with data.frame.merge #2574
Comments
|
certainly the data.table result looks more natural in this case... this
isn't SQL so getting rows back in some unpredictable order is an odd
behavior
…On Jan 18, 2018 10:44 PM, "HughParsonage" ***@***.***> wrote:
base::merge says for sort=FALSE the rows are in 'an unspecified order'.
So I think you'll just have to check the ordering if you need sort=FALSE.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2574 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHQQdZj3OWTywN2yNgCPzKS81QeCi_zkks5tL1jhgaJpZM4RjAlq>
.
|
@MichaelChirico, natural, yes, but when I read the help for
I read the 'added' as meaning 'added at the end', which is It might be nitpicking, but it did cause me some headscratching. |
|
Looks to be related to #2594 |
@arunsrinivasan don't you think the current behavior is better? |
Here is sample/test code:
This can have profound effects. Merge depends on type of
A
anddata.frame
/data.table
are interchangeable in many scenario's. Changing type ofA
can end up causing fireworks at unexpected places.I don't know what the correct behavior should be, but I do think the results should be the same.
The text was updated successfully, but these errors were encountered: