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 <xinxi...@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@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. ______________________________________________ R-help@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.