Re: [R] hard to believe speed difference

About this list Date view Thread view Subject view Author view Attachment view

From: A.J. Rossini (rossini@blindglobe.net)
Date: Fri 09 Aug 2002 - 02:31:19 EST


Message-id: <87ofcdfh2g.fsf@jeeves.blindglobe.net>


>>>>> "michael" == Michael Camann <mac24@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:

        http://www.stats.ox.ac.uk/pub/MASS3/Sprog/

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

best,
-tony

-- 
A.J. Rossini				Rsrch. Asst. Prof. of Biostatistics
U. of Washington Biostatistics		rossini@u.washington.edu	
FHCRC/SCHARP/HIV Vaccine Trials Net	rossini@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@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jun 2004 - 09:31:05 EST