Dear all,
I have a dataset like this
I want to remove rows that has similar content with other observations across variables. For example, 'patient_name1' in row 1 is the same as 'patient_name2' in row 3, while 'patient_name2' in row 1 is the same as 'patient_name1' in row 3. So in this case I would like to remove both row 3 and row 4. Is there any way that I could do so? Thanks in advance!
I have a dataset like this
Code:
index patient_name1 patient_name2 1 "aaa" "aab" 2 "zyy" "zkk" 3 "aab" "aaa" 4 "zkk" "zyy"

Comment