Suppose you have a for loop like so
for(n in 1:5) { #if(n=3) # skip 3rd iteration and go to next iteration cat(n) }
How would one skip
for(n in 1:5) { if(n==3) next # skip 3rd iteration and go to next iteration cat(n) }