I have a file which have different record type in different row and this can be identified using the first column value of the row, a sample data set is given below
V1 V2 V3 V4
1 ABC DEF 10
1 XYZ QWE 11
2 ASD WER 1
1 QWE SDF 34
2 FGH AXD 35
Now, i want to read this file but not the entire file but only those rows for which value of V1 is 2 and want to discard the rows with value 1. This can easily be done in SAS and if we have to do in R, we can read the entire file and then subset it. But i don't want to read the entire file and then subset, is it possible to read these specific rows at the time of reading.
Thanks for your answers.