Hello,

How to filter the matrix (m) based on the array (a)?

> m
     [,1] [,2] [,3]
[1,]    5    1    4
[2,]    2    6    2
[3,]    3    4    7
[4,]    1    2    6
[5,]    1    5    3
[6,]    7    6    2

> a
[1] 2 6

> output
     [,1] [,2] [,3]
[1,]    2    6    2
[2,]    1    2    6
[3,]    7    6    2


Thanks a lot!

RMB

	[[alternative HTML version deleted]]

