Skip to content
Prev 374803 / 398506 Next

how to make the code more efficient using lapply

... and, of course, the original premise is false. apply() type statements
**are** loops at the interpreter level and are typically not appreciably
faster -- sometimes even a bit slower -- than explicit for() loops. Their
chief advantage is adherence to a functional programming paradigm that for
many of us means greater code clarity.

Cheers,
Bert



Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

On Fri, May 25, 2018 at 9:09 AM, MacQueen, Don via R-help <
r-help at r-project.org> wrote: