c.factor {gdata} | R Documentation |
This method for c
combines factors while properly preserves level
information.
c.factor(..., recursive = FALSE)
... |
factors to be combined |
recursive |
ignored |
A single factor object. The levels on the new object are created by concatinating the levels of the provided factors, with any duplicate level names merged, and with the factor coding modified appropriately.
Gregor Gorjan
f1 <- factor(letters[1:10]) f2 <- factor(letters[5:14]) c(f1,f2)