I have 2 large data frames that are suppose to be duplicates of each other. However there is 3 extra rows in the second data frame. I need to find these 3 extra rows that are not present in the first data frame and remove them from the second data frame so that the data frames are the same. The 3 rows could be located anywhere in the data frame, not just added at the end.
I don't know the most efficient way to go about this. I have tried using the %in% operator along side ! to go through each column in the data to find the rows that differ but this is taking too long as there are over 100 columns. Has anyone got a more efficient way to do such a task?
Thanks