Using R. Base package, dplyr, or data.table are all okay for me to use. My data is ~1000 rows x 20 columns. I expect about 300 duplicates.
I'd like to do something like the following, but with one alteration:
Match/group duplicate rows (indices)
I'd like to find, not fully duplicated rows, but rows duplicated in two columns. For example, given this input table:
File T.N ID Col1 Col2
BAI.txt T 1 sdaf eiri
BAJ.txt N 2 fdd fds
BBK.txt T 1 ter ase
BCD.txt N 1 twe ase
If I want to find duplicates in T.N & ID only, I'd end up with the following table:
File T.N ID Col1 Col2
BAI.txt T 1 sdaf eiri
BBK.txt T 1 ter ase