> From: Prof Brian Ripley [mailto:[EMAIL PROTECTED]
> On Wed, 28 Jan 2004, "Hüsing, Johannes" wrote:
> > ?apply for more info. You'll want to know about apply if
> > you want to avoid loops (which is a good approach).
> 
> Unfortunately apply() is a wrapper for a for() loop, so will 
> not help much 
> (if at all).

whoops; so is the choice between both a matter of style? Or is
it implementation-specific for R, and not generally true for S?

(I know from LISP that if using map, roughly the equivalent to
S' apply instead of the do loop, you cannot rely on the elements 
being executed in their original order, which might buy you 
efficiency depending on the implementation.)

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to