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
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
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
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
4 matches
Mail list logo