for
while
So far, each statement in our code was executed just once. Sometimes, howver, a piece of code is meant to be executed multiple times. For this, R offers multiple looping constructs, including for and while.