I'm looking to create an ID variable so I can group 2 rows together to identify that no pair of 2 rows is the same.
Currently My data frame looks like this
Column a     Column b     Column c
Tom            K             Adam
Greg           R             Adam
Troy           K             Lisa
Daniel         R             Lisa
John           K             Greg
Tom            R             Greg
Lisa           K             Adam
Greg           R             Adam
I want it to include an extra column that has unique ID variables so each pair of rows (according to column c) can be grouped together.
E.g.
Column a     Column b     Column c     Column d
Tom            K             Adam        3226
Greg           R             Adam        3226
Troy           K             Lisa        3227
Daniel         R             Lisa        3227
John           K             Greg        3228
Tom            R             Greg        3228
Tom            K             Adam        3229
Greg           R             Adam        3229
Important to note that Adam appears 4 times in Column c but each pairing of his name creates a new unique ID
Any help would be much appreciated.
 
     
    