ref="https://r-spatial.github.io/sf/reference/st_geometry.html" class="external-link">st_geometry</a></span><span class="op">(</span><span class="va">NY8_sf</span><span class="op">)</span><span class="op">)</span></span></code></pre></div>
<p>or indeed taking the centre of the largest inscribed circle (the
function returns a radius line segment, so we choose the central point,
not the point on the circle):</p>
<div class="sourceCode" id="cb32"><pre class="downlit sourceCode r">
<code class="sourceCode R"><s