[R] really dumb question | loop counters in
Evan Cooch
cooch17 at verizon.net
Fri Sep 21 22:20:00 CEST 2007
Paul Hiemstra wrote:
> Hi,
>
> This works:
>
> for(i in seq(1,100,5)) {
> print(i)
> }
>
> Very similar to the way python does this kind of loop.
>
Indeed it is - thanks for the tip. I'm still puzzled why I can't find a
single piece of the standard [R] language documentation that shows this.
In contrast, every single other language I use (more than I care to
admit), and documentation for same, feature this prominently when they
talk about looping.
Ah well.
More information about the R-help
mailing list