an> ,<span class="fl">20</span><span class="op">]</span></span></span>
<span class="r-in"><span><span class="co"># Dense points are less anomalous. Hence 1 - pointdensity is used.</span></span></span>
<span class="r-in"><span><span class="va">y5</span> <span class="op">&lt;-</span> <span class="fl">1</span> <span class="op">-</span> <span class="fu">dbscan</span><span class="fu">::</span><span class="fu"><a href="https://rdrr.io/pkg/dbscan/man/pointdensity.html" class="external-link">pointdensity</a></span>