pan> <span class="fu">terra</span><span class="fu">::</span><span class="fu"><a href="https://rspatial.github.io/terra/reference/is.bool.html" class="external-link">as.int</a></span><span class="op">(</span></span></span>
<span class="r-in"><span>    <span class="va">sim_features</span><span class="op">[[</span><span class="va">i</span><span class="op">]</span><span class="op">]</span> <span class="op">&gt;</span> <span class="va">thresholds</span><span class="op">[[</span><span class="fl">1</span><span cla