Re: [R] FW: flow control

2009-03-05 Thread Peter Dalgaard
William Dunlap wrote: The help page for ?for says that: The index seq in a for loop is evaluated at the start of the loop; changing it subsequently does not affect the loop. The variable var has the same type as seq, and is read-only: assigning to it does not alter seq. The

[R] FW: flow control

2009-03-04 Thread Lo, Ken
Hi all, I need a little help with flow control in R. What I'd like to do is to advance a for loop by changing its counter. However, what seems obvious to me does not yield the proper results. An example of my problem is for (i in seq(1, some_number, some_increment)){ some stuff

Re: [R] FW: flow control

2009-03-04 Thread Christos Hatzis
Sent: Wednesday, March 04, 2009 3:53 PM To: r-help@r-project.org Subject: [R] FW: flow control Hi all, I need a little help with flow control in R. What I'd like to do is to advance a for loop by changing its counter. However, what seems obvious to me does not yield the proper

Re: [R] FW: flow control

2009-03-04 Thread William Dunlap
The help page for ?for says that: The index seq in a for loop is evaluated at the start of the loop; changing it subsequently does not affect the loop. The variable var has the same type as seq, and is read-only: assigning to it does not alter seq. The help file is not right when seq