[R] use Vectorized function as range of for statement

Zhang Weiwu zhangweiwu at realss.com
Fri Aug 2 03:52:36 CEST 2013



On Thu, 1 Aug 2013, Jeff Newmiller wrote:

> The Vectorize function is essentially a wrapped up for loop, so you are 
> really executing two successive for loops. Note that the Vectorize 
> function is not itself vectorised, so there is no particular advantage to 
> using it in this way. You might as well call fun as a statement in the for 
> loop.

Thanks all who answered me! Now it is answered.



More information about the R-help mailing list