Re: [R] Difference between loops and vectorization

2010-12-01 Thread Dieter Menne
Santosh Srinivas wrote: A fundamental question ...I'm trying to understand the differences between loop and vectorization ... I understand that it should be a natural choice to use apply / adply when it is needed to perform the same function across all rows of a data frame. Any pointers on

[R] Difference between loops and vectorization

2010-11-30 Thread Santosh Srinivas
Hello R-helpers, A fundamental question ...I'm trying to understand the differences between loop and vectorization ... I understand that it should be a natural choice to use apply / adply when it is needed to perform the same function across all rows of a data frame. Any pointers on why this is