I have the matrix y with variable x:
x
[1,] 0
[2,] 1
[3,] 0
[4,] 0
[5,] 1
[6,] 1
I selected just values with 1. Now I have a vector z:
2 5 6
I need match this vector with lines selected with my matrix y. This a example, I have a big data. I tried y[z], but this don't show the rows. Thanks