> DF <- data.frame(v = factor(c("red", "blue", "green", "blue",NA,NA,NA)))
> summary(DF)
v
blue :2
green:1
red :1
NA: 3
I have two questions: 1)How can i remove these NA from this categorical variable? I mean i want to remove all rows from my dataframe who have NA in v. (As My original dataframe has many columns). 2)How can i remove "green" from this variable?