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.
______________________________________________
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.