&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/as.data.frame.html" class="external-link">as.data.frame</a></span><span class="op">(</span><span class="va">localmoran</span><span class="op">)</span></span>
<span><span class="va">voronoi</span><span class="op">$</span><span class="va">Ii</span> <span class="op">&lt;-</span> <span class="va">localmoran_df</span><span class="op">$</span><span class="va">Ii</span></span>
<span></span>
<span><span class="va">gI</span> <span class="op">&lt;-</span> 