able equivalent see
<code><a href="http://maptools.r-forge.r-project.org/reference/SpatialLines2PolySet.html" class="external-link">maptools::SpatialPolygons2PolySet</a></code>.</p></div>
    </div>

    <div id="ref-examples">
    <h2>Examples</h2>
    <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="co"># \dontrun{</span></span></span>
<span class="r-in"><span><span class="co"># generate sf object</span></span></span>
<span class="r-in"><span><span class="va">s