-
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
joining with class interval #3217
Comments
Thanks! This doesn't seem to be related to #2432. As far as I can tell, the data frames differ only by the order of rows? Looks like |
Thanks for looking into this! The data frames do differ by the order of the rows, but I think that is expected output. What is specifically different, and what I believe to be incorrect, is that in df2_join_d1 the actual value of the interval object changes during the join. For example in df1 prior to the join, look at row id 10. The interval has a start date of 2017-03-10, end date of 2017-03-20, and a correct interval object of 2017-03-10 UTC--2017-03-20 UTC. But, after the join in df2_join_df1, the value of the interval object is changed and is reported as 2017-03-06 UTC--2017-03-16 UTC. This is incorrect. For some reason the class interval object changes during the join. Hope this helps clarify! Greatly appreciative of your support. |
Thanks for walking me through, I somehow missed the obvious. So: The row order is different, this is by design (and shouldn't be relevant). The |
great! thanks for looking into this. |
This is my first time posting on GitHub so I apologize in advance if I am missing needed information or if I am doing anything incorrectly. I also want to thank the developers for making an amazing package!
I ran into a possible bug when joining a data frame that contained an interval class column (lubridate). The interval class seems to be joined by position, not via the "by" variable. I think this is related to 2432, but I did not see this specific case described. Using merge produces the correct data frame.
Appreciate your support!
The text was updated successfully, but these errors were encountered: