 all programming languages, not just R, and can be a powerful tool (although in our opinion, used far too frequently when writing R code).</p>
<div id="for-loop" class="section level3 hasAnchor" number="7.5.1">
<h3><span class="header-section-number">7.5.1</span> For loop<a href="loops.html#for-loop" class="anchor-section" aria-label="Anchor link to header"></a></h3>
<p>The most commonly used loop structure when you want to repeat a task a defined number of times is the <code>for</code> loop.
The most basic