[R] apply, apply speed vs. traditional looping mechanisms

John Sorkin jsorkin at grecc.umaryland.edu
Sun May 14 16:55:59 CEST 2006

Can someone tell me why apply (and apply) are faster in performing
repeated operations than a for (or do) loop? I am looking for a
technical explanation.

John Sorkin M.D., Ph.D.
Chief, Biostatistics and Informatics
Baltimore VA Medical Center GRECC and
University of Maryland School of Medicine Claude Pepper OAIC

University of Maryland School of Medicine
Division of Gerontology
Baltimore VA Medical Center
10 North Greene Street
Baltimore, MD 21201-1524

jsorkin at grecc.umaryland.edu

More information about the R-help mailing list