></div>
<pre><code><span><span class="co">## [1] TRUE</span></span></code></pre>
<div class="section level4">
<h4 id="k-nearest-neighbours-1">K-nearest neighbours<a class="anchor" aria-label="anchor" href="#k-nearest-neighbours-1"></a>
</h4>
<p>If the input geometries are in geographical coordinates, and
<code><a href="https://r-spatial.github.io/sf/reference/s2.html" class="external-link">sf_use_s2()</a></code> is <code>TRUE</code>, <code><a href="../reference/knearneigh.html">knearneigh()</a></code>
will 