next is used to skip an ineration of a loop
for(i in 1:100) {
+ if(i <=20) {
+ ##skip the first 20 inerations
+ next
+ }
+ ## Do something here
+ }
Tips: return signals that a function should exit and return a given value
next is used to skip an ineration of a loop
for(i in 1:100) {
+ if(i <=20) {
+ ##skip the first 20 inerations
+ next
+ }
+ ## Do something here
+ }
Tips: return signals that a function should exit and return a given value