>
<span id="cb10-10"><a href="#cb10-10" aria-hidden="true"></a><span class="op">+</span><span class="st">   </span><span class="co"># Count the number of unique groups</span></span>
<span id="cb10-11"><a href="#cb10-11" aria-hidden="true"></a><span class="op">+</span><span class="st">   </span>sizes[i] &lt;-<span class="st"> </span><span class="kw">length</span>(<span class="kw">unique</span>(res<span class="op">$</span>group))</span>
<span id="cb10-12"><a href="#cb10-12" aria-hidden="true"></a><span class=