Posts Tagged ‘ loops ’

weird [lack of] control…

February 20, 2012
By
weird [lack of] control…

When I ran I was expecting the same output as So this means that the dummy index in R “for” loops cannot be tweaked that easily. I seem to remember doing this kind of (dirty) tricks with earlier versions… Now, Alessandra and Robin think this is a good thing that the for loop is robust

Read more »

R: Backwards for loop

March 20, 2010
By

for (i in 10:1) { print(i) }As easy as that.

Read more »