Re: [R] How to make R running faster

From: Esmail Bonakdarian <esmail.js_at_gmail.com>
Date: Wed, 28 May 2008 09:26:00 -0400

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. Received on Wed 28 May 2008 - 15:27:31 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