Re: [R] How to make R running faster

From: Erin Hodgess <erinm.hodgess_at_gmail.com>
Date: Wed, 28 May 2008 08:51:14 -0500

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

______________________________________________
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.
Received on Wed 28 May 2008 - 15:51:50 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 28 May 2008 - 17:30:41 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive