></span><span class="op">(</span><span class="va">out</span><span class="op">$</span><span class="va">coords</span><span class="op">[</span>, <span class="fl">1</span><span class="op">:</span><span class="fl">3</span><span class="op">]</span>, k <span class="op">=</span> <span class="va">kk</span><span class="op">)</span></span>
<span><span class="va">knn_dist</span> <span class="op">&lt;-</span> <span class="va">knn_dist</span><span class="op">[</span> ,<span class="va">kk</span><span class="op">]</span></