[R] convert 400 numeric variables to categorical together

R. Michael Weylandt michael.weylandt at gmail.com
Tue May 8 18:35:07 CEST 2012


How are they arranged currently? And should they be all one set of
levels or different factor sets?

Michael

On Tue, May 8, 2012 at 12:32 PM, ya <xinxi813 at 163.com> wrote:
> Hi everyone,
>
> Is there anyway I can convert more than 400 numeric variables to categorical variables simultaneously?
>
> as.factor() is really slow, and only one at a time.
>
> Thank you very much.
>
> ya
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list