I've tried the following simple one for the next loop in R programming:
for(i in 1:100) { if(i <= 20) { next } print(i) }
Below is the error message:
Error: unexpected symbol in "for(i in 1:100) { if(i <= 20) {next} print"
Please help me understand why I am getting the error.
source
to share