[R] how to speed up the process of R

mrzung mrzung46 at gmail.com
Fri Mar 16 01:00:25 CET 2012


hi
 I'm simulating some experiment by "for" function.
The problem is that it takes too much time.

for example,

a<-list()

for(i in 1:100000000){
a[[i]]<-i*1000
}

is there anyway to speed up the process?
I heard there is solution but i don't have idea.

Can anyone help me?

--
View this message in context: http://r.789695.n4.nabble.com/how-to-speed-up-the-process-of-R-tp4476794p4476794.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list