Neil Shephard wrote:

Loops are not massively efficient within R.

Look into using the apply() family of functions
(eapply()/lapply()/mapply/rapply()/tapply()).

Didn't someone post not too long ago that apply is
internally represented as a for-loop? Or am I not
remembering this correctly?

The reason for apply was that it was more concise but not
necessarily more efficient.

Esmail

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to