span class="dv">1</span></span>
<span id="cb397-2"><a href="loops.html#cb397-2" tabindex="-1"></a><span class="fu">print</span>(i)</span>
<span id="cb397-3"><a href="loops.html#cb397-3" tabindex="-1"></a><span class="do">## [1] 1</span></span></code></pre></div>
<p>Once this first iteration is complete, the for loop <em>loops</em> back to the beginning and replaces <code>i</code> with the next value in our <code>1:5</code> sequence (<code>2</code> in this case):</p>
<div class="sourceCode" id="cb398"><pre c