How to extract unique and double records by row while keeping original row order using R?
问题 Original (see Update below) I'm a newbie to R and currently working with collaboration data in the form of an edge list with 32 columns and around 200.000 rows in the following representation: 1 A A A B C A 2 A B B B C A 3 A B C C C C 4 B A B A B C A, B, C represent the countries of the in the publication participating researchers' institutions. In the real data set "A" is e.g. a country name such as "England" or "China". I want to keep unique records (A) and double records (A A) but remove