[R] Splitting a categorical variable into multiple variables

Claus O'Rourke claus.orourke at gmail.com
Fri Aug 9 16:10:38 CEST 2013


Hello R-Help,
I have a variable with > 32 levels and I'd like to split this into two
variables such that both new variables have >= 32 variables. This is
to handle the limit of 32 level predictor variables in R's Random
Forest implementation. Might someone be able to suggest an elegant way
to do this? I've tried googling for this, but haven't hit the right
search terms.

Regards



More information about the R-help mailing list