[R] vectorizing an iterative process.

Richard M. Heiberger rmh at temple.edu
Tue Dec 26 16:55:45 CET 2006


> x[i]=3Dx[i-1]+y[i-1] for all i, how can I do this without a loop? 

It looks like
   x <- cumsum(y)

What does 3D mean?



More information about the R-help mailing list