[R] Catenating factors.
Rolf Turner
r.turner at auckland.ac.nz
Wed May 23 03:38:19 CEST 2007
I was recently asked by one of new colleagues how to combine, or catentate,
or concatentate two factors. If x and y are factors, doing c(x,y) appears
to coerce x and y to numeric mode before catenating them. So what does one
do if one wants the result to be a factor whose levels are the union of the
levels of x and y? I vaguely recall seeing this discussed in r-help, but I
can't find anything on it there, nor in the FAQ.
Am I missing something obvious?
cheers,
Rolf
r.turner at auckland.ac.nz
######################################################################
Attention:\ This e-mail message is privileged and confidenti...{{dropped}}
More information about the R-help
mailing list