You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above crash occurred for me on both OS X and windows, but was alleviated by specifying the number of rows in the second table being joined (df2 below had exactly 1130 rows). The first join column was formatted as POSIXct. It is a large dataset and I have not been able to reproduce with a simpler example, but happy to provide the data if you need a reproducible example.
The text was updated successfully, but these errors were encountered:
nickbond
changed the title
left_join with multiple matching columns crashes R if adding new rows (cartesian product)
left_join with large dataset and multiple matching columns crashes R if adding new rows (cartesian product)
Jun 23, 2015
The code below joins the two dataframes. What I discovered by accident is that including 'zone' in the list of join terms avoids the error (example 1), as does specificying the length of the second data frame (example 2). Example 3 causes a crash. Importantly, 'zone' is not essential (other than maintaining it as a unique field in the joined table) because sites codes are unique within each zone, and thus I would expect the join to work regardless. The main question is why example 2 works, but not example 3.
The above crash occurred for me on both OS X and windows, but was alleviated by specifying the number of rows in the second table being joined (df2 below had exactly 1130 rows). The first join column was formatted as POSIXct. It is a large dataset and I have not been able to reproduce with a simpler example, but happy to provide the data if you need a reproducible example.
Thanks,
Nick
The text was updated successfully, but these errors were encountered: