nd nothing more.</p>
<p>Whilst above we have been using simple addition in the body of the loop, you can also combine loops with functions.</p>
<p>Let’s go back to our data frame <code>city</code>. Previously in the Chapter we created a function to multiply two columns and used it to create our <code>porto_aberdeen</code>, <code>aberdeen_nairobi</code>, and <code>nairobi_genoa</code> objects. We could have used a loop for this. Let’s remind ourselves what our data look like and the code for the <code>mu