Code cell-code" id="cb5"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb5-1"><a></a><span class="fu">st_combine</span>(p) <span class="sc">|&gt;</span> </span>
<span id="cb5-2"><a></a>  <span class="fu">st_cast</span>(<span class="st">"LINESTRING"</span>)</span>
<span id="cb5-3"><a></a><span class="co">#&gt; Geometry set for 1 feature </span></span>
<span id="cb5-4"><a></a><span class="co">#&gt; Geometry type: LINESTRING</span></span>
<span id="cb5-