Skip to content
Prev 43758 / 398513 Next

What is the correct way of using function C() for factors:

To combine objects that are already factors, the solution I've 
found is to first coerce them to mode character: 

 > F1 <- factor("a")
 > F2 <- factor("b")
 > factor(c(as.character(F1), as.character(F2)))
[1] a b
Levels: a b

      hope this helps. 
      spencer graves
Corey Moffet wrote: