I remember reading the colSum and colMean were better, when you need sums and means
On Wed, May 28, 2008 at 8:26 AM, Esmail Bonakdarian <[EMAIL PROTECTED]> wrote: > 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@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. > -- Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: [EMAIL PROTECTED] ______________________________________________ R-help@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.