n>
<span class="r-in"><span><span class="co">## Convert the occupancy matrix</span></span></span>
<span class="r-in"><span><span class="fu">convert_occupancy</span><span class="op">(</span><span class="va">occ</span><span class="op">)</span></span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span>       [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9]</span>
<span class="r-out co"><span class="r-pr">#&gt;</span>  [1,] "v"  ""   ""   ""   ""   ""   ""   ""   ""  </span>
<span class="r-out co"><span c