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