gdest-pair-the-maximum-speed" class="section level4">
<h4>– How can we add a new column which contains for each <code>orig,dest</code> pair the maximum speed?</h4>
<div class="sourceCode" id="cb13"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb13-1"><a href="#cb13-1" aria-hidden="true"></a>flights[, max_speed <span class="op">:</span><span class="er">=</span><span class="st"> </span><span class="kw">max</span>(speed), by =<span class="st"> </span>.(origin, dest)]</span>
<span id="cb13-2