Martin Maechler <[EMAIL PROTECTED]> wrote that
        [using apply functions is] not [better than using loops],
        not at all.

He would be right in all he says if time efficiency were the only
reason to prefer one coding style to another.

Loop-free notatation can reduce the number of variables in scope,
making the code easier to read and rearrange.  By separating "what to
do with the elements" from "how to find the elements", it can lead to
pieces which are separately reusable.  By reducing the volume of
code, it can result in code with fewer mistakes.

(Note the word "can" in each of those sentences.)

______________________________________________
[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