ps://r-spatial.github.io/sf/reference/st_collection_extract.html" class="external-link">st_collection_extract()</a></code> to
get the polygon objects:</p>
<div class="sourceCode" id="cb24"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">NY8_sf_old_val</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://r-spatial.github.io/sf/reference/st_collection_extract.html" class="external-link">st_collection_extract</a></span><span class="op">(</span><span class=