0
#&gt; [22,]    0    1    0    0    1    0    0    1    0     0     0     0     0
#&gt; [23,]    0    0    0    0    0    0    0    0    0     0     1     0     0
#&gt; [24,]    0    0    0    0    0    0    0    0    0     0     0     0     0
#&gt; [25,]    0    0    1    0    0    1    0    0    1     0     0     0     0
#&gt; [26,]    0    0    0    0    0    0    0    0    0     0     0     1     0
#&gt; [27,]    0    0    0    0    0    0    0    0    0     0     0     0     0
#&gt;       [,14] [,15] 