</span>(<span class="fu">names</span>(neigh_list) <span class="sc">%in%</span> three_sp)</span>
<span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-7"><a href="#cb1-7" aria-hidden="true" tabindex="-1"></a>data <span class="ot">&lt;-</span> neigh_list[sp.pos]</span>
<span id="cb1-8"><a href="#cb1-8" aria-hidden="true" tabindex="-1"></a><span class="co"># keep only fitness and neighbours columns</span></span>
<span id="cb1-9"><a href="#cb1-9" aria-hidden="true" tabinde