Re: [R] APPLY as alternate to FOR loop?

From: Johannes Hüsing <>
Date: Wed, 02 Apr 2008 21:04:31 +0200 <> [Mon, Mar 31, 2008 at 07:02:25AM CEST]:
> As far as I know there is no function called 'APPLY'
> There is one called 'apply', but why are you determined to use it here?
> It is essentially concealed looping.

I always use apply instead of for when the steps can be performed independently and are parallelizable. By the same token as I use map instead of recursion in Lisp.

R is essentially concealed Lisp, or so I'm told.

Johannes Hüsing               There is something fascinating about science. 
                              One gets such wholesale returns of conjecture  from such a trifling investment of fact.                (Mark Twain, "Life on the Mississippi")

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 02 Apr 2008 - 19:07:49 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 02 Apr 2008 - 19:30:26 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive