On a big dataset, I would like to delete the rows which present an id in common to the sample A. Then I would like to remove all the row from sample A.
feature id sample
a 1 A
b 1 B
c 2 A
d 2 C
e 3 A
f 4 B
g 4 C
h 5 C
i 5 C
The output should be:
feature id sample
f 4 B
g 4 C
h 5 C
i 5 C
As my dataset as more than 8000 rows, I need another way to do it than saying row by row which one I want to delete. I am not sure how to do that, any advice welcome.