ttps://r-spatial.github.io/sf/reference/geos_binary_pred.html" class="external-link">st_intersects()</a></code> reports both
<code>i j</code> ans <code>j i</code> relationships. As
<code><a href="https://r-spatial.github.io/sf/reference/geos_binary_pred.html" class="external-link">st_intersects()</a></code> does not report whether neighbours are
<code>queen</code> or <code>rook</code>, a further step is needed to
distinguish the two cases.</p>
<div class="sourceCode" id="cb8"><pre class="downlit sourceCode 