The iterator changes value each time through the loop.
[1] "Porites"
[1] "Pocillopora"
[1] "Acropora"
EDS 221 Day 3 PM
Loops
August 12th, 2025
Loops let you repeat yourself
For example, print each value in a vector
Loops let you repeat yourself
It’s common to loop over the indices of a vector.
What does this loop make?
Let’s break down this loop.
Parts of a loop
A loop has three main parts
Parts of a loop
A loop has three main parts
Parts of a loop
A loop has three main parts
Parts of a loop
A loop has three main parts