[R] How to make R running faster

Erin Hodgess erinm.hodgess at gmail.com
Wed May 28 15:51:14 CEST 2008


I remember reading the colSum and colMean were better, when you need
sums and means

On Wed, May 28, 2008 at 8:26 AM, Esmail Bonakdarian <esmail.js at gmail.com> wrote:
> Neil Shephard wrote:
>>
>> Loops are not massively efficient within R.
>>
>> Look into using the apply() family of functions
>> (eapply()/lapply()/mapply/rapply()/tapply()).
>
> Didn't someone post not too long ago that apply is
> internally represented as a for-loop? Or am I not
> remembering this correctly?
>
> The reason for apply was that it was more concise but not
> necessarily more efficient.
>
> Esmail
>
> ______________________________________________
> 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.
>



-- 
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com



More information about the R-help mailing list