[R] How to make R running faster

Neil Shephard nshephard at gmail.com
Wed May 28 14:35:54 CEST 2008




ctu wrote:
> 
> Hi everyone,
> I run the R loops on window XP and vista. Both are Intel core 2 Duo  
> 2.2 GHz with 2 GB ram and XP is significantly faster than vista. Dose  
> anyone know how speed up R loops in vista?
> 
> 

Loops are not massively efficient within R.

Look into using the apply() family of functions
(eapply()/lapply()/mapply/rapply()/tapply()).

There are plenty of threads in the archives on how to do things more
efficiently with apply() rather than loops.

Neil

-- 
View this message in context: http://www.nabble.com/How-to-make-R-running-faster-tp17507590p17511667.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list