o">#&gt; 6 28.00000 185.9315 14.9   66     5   6</span></code></pre></div>
<p>To use a function from another package to perform replacements:</p>
<p>To perform a forward fill with <code>dplyr</code>’s <code>lead</code>:</p>
<div class="sourceCode" id="cb38"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span class="co"># use lag for a backfill</span>
<span class="fu"><a href="https://rdrr.io/r/utils/head.html" class="external-link">head</a></span><span class="op">(</span><span class="fu"><