[R] hard to believe speed difference

A.J. Rossini rossini at blindglobe.net
Thu Aug 8 18:31:19 CEST 2002

>>>>> "michael" == Michael Camann <mac24 at humboldt.edu> writes:

    michael> Like many of us on this list (I presume), I've been writing computer code
    michael> for twenty-five years or so in a wide variety of languages.  I started
    michael> using S-Plus in 1991 and switched to R when I took my present job in 1997.
    michael> The point of this is that despite a decade or so of S/R experience, I've
    michael> only recently, within the last couple of years, begun to write R code that
    michael> makes efficient use of the language, particularly with regard to
    michael> eliminating loops.  Old habits die hard, especially coding paradigms that
    michael> are efficient solutions in many environments but not in R.

There's a wonderful book called S Programming, by Venables and Ripley
(familiar names, eh?), which should be a must-read in this case.  See:


for more details.  It's not clear that one could write a "lint" to
check for inefficiency; lint doesn't do that for C!


A.J. Rossini				Rsrch. Asst. Prof. of Biostatistics
U. of Washington Biostatistics		rossini at u.washington.edu	
FHCRC/SCHARP/HIV Vaccine Trials Net	rossini at scharp.org
-------------- http://software.biostat.washington.edu/ ----------------
FHCRC: M: 206-667-7025 (fax=4812)|Voicemail is pretty sketchy/use Email
UW:   Th: 206-543-1044 (fax=3286)|Change last 4 digits of phone to FAX
(my tuesday/wednesday/friday locations are completely unpredictable.)

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list