I have Id Values some are duplicates, there is another column Status (yes/No) , I want to extract the subset of duplicate values which have two different status values. For example , if my dataset is as below
Id Status
23984 Yes
94949 No
89685 No
33232 Yes
33232 Yes
57943 No
75633 Yes
75633 No
In this case, Id 75633 is duplicate and has two different status (Yes & No) so my final dataset should contain only such ids and not 33232.
Id Status
75633 Yes
75633 No
I know how to do a subset but no clue how to include this criteria need some help.