Skip to content
Prev 79872 / 398502 Next

replacing a factor value in a data frame

On Fri, 28 Oct 2005, Federico Calboli wrote:

            
1) Use %in% not ==

2) (Better) As this is a factor, use levels<- to merge the levels.  See 
?levels.