class="sourceCode R"><span><span class="va">max_1nn</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/Extremes.html" class="external-link">max</a></span><span class="op">(</span><span class="va">dsts</span><span class="op">)</span></span></code></pre></div>
<p><code>dnearneigh</code> can also handle Great Circle distances, but
this is not demonstrated here, as the data set used is planar:</p>
<div class="sourceCode" id="cb47"><pre class="downlit sourceCode r">
<code class