[R] efficiency & profiling? (was: Why R is 200 times slower than Matlab ?)

From: esmail bonakdarian <ebonak_at_hotmail.com>
Date: Wed, 30 Apr 2008 18:59:38 -0400

This has been an interesting discussion, and brings up two questions for me:

Is there a good collection of hints/suggestions for R language idoms in terms of efficiency? For instance I read not to use for-loops, so I used apply only to later read that "apply" is internally implemented as a "for" so nothing gained here. Warnings about pitfalls (such as nested loops), hints, suggestions would be great.

The second question - is there some sort of profiling tool available that would make it easy to recognize where the script is spending most of its time? Might be especially useful for newbies like me.

Thanks all,

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.



Spell a grand slam in this game where word skill meets World Series. Get in the game.

08

        [[alternative HTML version deleted]]



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 30 Apr 2008 - 23:03:51 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 Thu 01 May 2008 - 00:30:33 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