[R] convert 400 numeric variables to categorical together
jim holtman
jholtman at gmail.com
Tue May 8 18:39:03 CEST 2012
Put a number on it.
"really slow" is not quantitative. What are we specially talking
about with respect to the size of the object you are converting? What
have you experienced so far? Exactly what is the code you are doing?
"simultaneously" would only happen if you parallelized the code and
depending on your timings may not be worth it, but it is hard to tell
without any useful information.
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.
--
Jim Holtman
Data Munger Guru
What is the problem that you are trying to solve?
Tell me what you want to do, not how you want to do it.
More information about the R-help
mailing list