[R] for loop the can be skipped

Fabrizio Pollastri f.pollastri at inrim.it
Thu Feb 11 15:28:01 CET 2010


Hello,

there is compact way to skip a for loop when the requested number of 
iterations is 0 ?

For example, something equivalent to the following code:

for (i in some_function(from=1,to=iteration_cycles)) { ... }

Where the loop is skipped when iteration_cycles==0

Thanks in advance.
F: Pollastri



More information about the R-help mailing list