I have two sets of co-ordinates:
- Set A one with 49,898 combinations of x and y
- Set B with 36,404 combinations of x and y.
- (Set A has all of the combinations in Set B plus an additional 13,494 combinations)
- solutions in either Excel or R are fine
I want to extract this unique set of 13,494 combinations. For the purpose of trying to extract these unique values using Excel or R, I have copied Set B’s x & y co-ordinate combinations into the same column as Set A’s.
Table layout is two columns Xcod, Ycod
: x and y example
I have read through a number of posts proposing the use of excel & R which partly deal with this problem except the output is always 49,898 combinations because they maintain the ‘original’ set of duplicate values. I understand why this is, but what I would like is to delete those duplicates entirely so that I have a final output containing Set A's unique 13,494 combinations.
[Excel] I used the following: Data -> Advanced Filter -> Unique records only
[R] I used the following code from this thread:
UniqRemDups <- unique(RemDups[,c('Xcod','Ycod')])
How to filter for unique combination of columns from an R dataframe
Any help/advice would be greatly appreciated.