s="r-out co"><span class="r-pr">#&gt;</span> g3   1   .   1   1</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> g4   1   1   1   1</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> g5   .   1   1   .</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> g6   .   .   1   1</span>
<span class="r-in"><span><span class="fu">sparse2long</span><span class="op">(</span><span class="va">sparse_comm</span><span class="op">)</span></span></span>
<span class="r-out co"><span class="r-