>m</span> <span class="op">&lt;-</span> <span class="fu"><a href="connectivity_matrix.html">connectivity_matrix</a></span><span class="op">(</span><span class="va">sim_pu_raster</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">)</span></span></span>
<span class="r-in"><span>  <span class="co"># convert matrix to 0/1 values denoting values in top 5th percentile</span></span></span>
<span class="r-