I have tried various functions including compare and all.equal
but I am having difficulty finding a test to see if variables are the same.
For context, I have a data.frame
which in some cases has a duplicate result. I have tried copying the data.frame
so I can compare it with itself. I would like to remove the duplicates.
One approach I considered was to look at row A from dataframe 1 and subtract it from row B from dataframe 2. If they equal to zero, I planned to remove one of them.
Is there an approach I can use to do this without copying my data?
Any help would be great, I'm new to R coding.