In R with a matrix:
one two three four [1,] 1 6 11 16 [2,] 2 7 12 17 [3,] 3 8 11 18 [4,] 4 9 11 19 [5,] 5 10
I will choose a simple approach using the dplyr package.
If the dataframe is data.
library(dplyr) result <- filter(data, three == 11)