1 year ago
#388700
redwoods
How do I remove observations from the first level of a variable?
I have a factor variable movieFac and I'm trying to remove these 38 observations at the beginning and recreate the variable without them. I've been trying drop levels, but haven't had any success.
movieFac <- as.factor(movieW$movie)
table(movieFac)
movieFac
A Beautiful Mind
38 23
American Beauty Batman
38 13
Beverly Hills Cop Chicago
33 36
r
dataframe
levels
0 Answers
Your Answer