Skip to content
Prev 280033 / 398506 Next

For loop indicies

You may want to check how your loop "misses out" the zero:

C <- 5
for (i in 0:C) print(i)

## gives me

[1] 0
[1] 1
[1] 2
[1] 3
[1] 4
[1] 5


Regards,
Enrico

Am 12.12.2011 12:44, schrieb Thomas Chesney: