[R] Python and R
ggrothendieck at gmail.com
Wed Feb 18 12:10:27 CET 2009
On Tue, Feb 17, 2009 at 6:59 PM, Esmail Bonakdarian <esmail.js at gmail.com> wrote:
> Well, I have a program written in R which already takes quite a while
> to run. I was
> just wondering if I were to rewrite most of the logic in Python - the
> main thing I use
> in R are its regression facilities - if it would speed things up. I
> suspect not since
> both of them are interpreted, and the bulk of the time is taken up by
> R's regression
See ?Rprof for profiling your R code.
If lm is the culprit, rewriting your lm calls using lm.fit might help.
More information about the R-help