Dear R users, I would like to know if there is a way to increase the for() loop speed because in my routine the calculations are too slow. Best regards. Rafael Barros de Rezende Cedeplar - Center for Development and Regional Planning Face, UFMG ([1]http://www.cedeplar.ufmg.br) -- Esta mensagem foi verificada pelo sistema de antiv??rus e acredita-se estar livre de perigo. References 1. http://www.cedeplar.ufmg.br/
Dear R users, I would like to know if there is a way to increase the for() loop speed because in my routine the calculations are too slow. Best regards. Rafael Barros de Rezende Cedeplar - Center for Development and Regional Planning Face, UFMG ([1]http://www.cedeplar.ufmg.br) -- Esta mensagem foi verificada pelo sistema de antiv??rus e acredita-se estar livre de perigo. References 1. http://www.cedeplar.ufmg.br/
13 minutes is a long time for a loop to simply send an email, what other calculations are going on? Rafael Barros de Rezende wrote:> Dear R users, > > I would like to know if there is a way to increase the for() loop speed > because in my routine the calculations are too slow. > > Best regards. > Rafael Barros de Rezende > Cedeplar - Center for Development and Regional Planning > Face, UFMG ([1]http://www.cedeplar.ufmg.br) > -- > Esta mensagem foi verificada pelo sistema de antiv??rus e > acredita-se estar livre de perigo. > > References > > 1. http://www.cedeplar.ufmg.br/ > ______________________________________________ > 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. >
My routine is on Financial Econometrics (Yield Curve Modeling). It is very intensive. And I have heard that the for() loop speed could be increased with a command. I want to know if there a way to do it. Best regards. Rafael Barros de Rezende ---------- Original Message ----------- From: Erik Iverson <iverson at biostat.wisc.edu> To: Rafael Barros de Rezende <rafabarros at cedeplar.ufmg.br> Cc: r-help at r-project.org Sent: Thu, 12 Jun 2008 11:06:09 -0500 Subject: Re: [R] How to increase the for() loop speed? > 13 minutes is a long time for a loop to simply send an email, what other > calculations are going on? > > Rafael Barros de Rezende wrote: > > Dear R users, > > > > I would like to know if there is a way to increase the for() loop speed > > because in my routine the calculations are too slow. > > > > Best regards. > > Rafael Barros de Rezende > > Cedeplar - Center for Development and Regional Planning > > Face, UFMG ([1][1]http://www.cedeplar.ufmg.br) > > -- > > Esta mensagem foi verificada pelo sistema de antiv??rus e > > acredita-se estar livre de perigo. > > > > References > > > > 1. [2]http://www.cedeplar.ufmg.br/ > > ______________________________________________ > > R-help at r-project.org mailing list > > [3]https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide [4]http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > > > -- > Esta mensagem foi verificada pelo sistema de antiv??rus e > acredita-se estar livre de perigo. ------- End of Original Message ------- -- Esta mensagem foi verificada pelo sistema de antiv??rus e acredita-se estar livre de perigo. References 1. http://www.cedeplar.ufmg.br/ 2. http://www.cedeplar.ufmg.br/ 3. https://stat.ethz.ch/mailman/listinfo/r-help 4. http://www.r-project.org/posting-guide.html
Rafael Barros de Rezende:> I would like to know if there is a way to increase the for() loop speed > because in my routine the calculations are too slow.Read the article 'How Can I Avoid This Loop or Make It Faster?' on page 46 in the latest R News "http://cran.r-project.org/doc/Rnews/Rnews_2008-1.pdf". -- Karl Ove Hufthammer