I have a dataset with multiple variables and a factor variable that has the name of the segment like Seg1, Seg2, Seg3, etc.
The names of the segments are unique and there is a total of 11 segments and I would like to drop the records of a few segments.
Since this is a factor variable, how do I drop the records that meet the criteria. The levels I want to drop are 1,2,5,6,7. Please help me in how do I drop the rows where the segments are of these levels.