&gt;  [3,]    0    0    1    0    0    0    0    0    0     0     0     1     0
#&gt;  [4,]    0    0    0    1    0    0    0    0    0     0     0     0     1
#&gt;  [5,]    0    0    0    0    1    0    0    0    0     0     0     0     0
#&gt;  [6,]    0    0    0    0    0    1    0    0    0     0     0     0     0
#&gt;  [7,]    0    0    0    0    0    0    1    0    0     0     0     0     0
#&gt;  [8,]    0    0    0    0    0    0    0    1    0     0     0     0     0
#&gt;  [9,]    0    0    0 