[R] apply is slower than for loop?

Liviu Andronic landronimirc at gmail.com
Mon Jul 12 09:16:12 CEST 2010


On Fri, Jul 9, 2010 at 9:11 PM, Gene Leynes <gleynes+r at gmail.com> wrote:
> I thought the "apply" functions are faster than for loops, but my most
> recent test shows that apply actually takes a significantly longer than a
> for loop.  Am I missing something?
>
Check Rnews for an article discussing "proper" usage of apply and for.
Liviu



More information about the R-help mailing list