In R, to prematurely exit a for loop, you can use the ______ keyword.

  • Next
  • Skip
  • Break
  • Exit
In R, the break keyword is used to prematurely exit a for loop. When encountered, the break statement immediately terminates the loop and execution continues with the next statement after the loop.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *