
<pre><code><span><span class="co">##    user  system elapsed </span></span>
<span><span class="co">##  0.0623  0.0012  0.0637</span></span></code></pre>
<p>By default, the function uses <code><a href="https://rdrr.io/pkg/dbscan/man/frNN.html" class="external-link">dbscan::frNN()</a></code> to build a
kd-tree in 2D or 3D which is then used to find distance neighbours. For
small n, the argument <code>use_kd_tree=FALSE</code> may speed up
computation a little by reverting to legacy code not building a kd-tree