My problem is as follows, I need to determine the same variants with a different outcome in R. So I have:
Variant | Outcome |
---|---|
1 | A |
1 | A |
1 | A |
1 | B |
2 | C |
2 | C |
2 | C |
3 | D |
3 | E |
4 | F |
4 | F |
4 | F |
4 | G |
4 | G |
5 | H |
5 | H |
5 | H |
5 | H |
And my output should be: Variant 1, 3, & 4
I know about the functions duplicated, intersect etc but have no clue how to combine them to get what I want.