Hi, 
 
how to remove levels that have less than a specific number such as 2. i.e..
 
> f<-as.factor(c("a","b","a"))
> f
[1] a b a
Levels: a b

I want to remove level b because level b has less than 2.
> f
[1] a a
Levels: a

 


      
	[[alternative HTML version deleted]]

