I have a data frame with many columns and rows with many ids, the following data only shows 2 ids.
id  treatment  
1   A          
1   B          
1   C          
1   D          
1   E          
2   A          
2   B         
2   C  
I want to get the subgroup of id with the five treatments (A,B,C,D,E). So the output table would look like this:
id  treatment
1   A          
1   B        
1   C           
1   D           
1   E   
Thank you very much.
 
     
     
     
     
    