I have a table data1 that looks like :
V1 V2 V3
A  B  1
A  C  1
A  D  0
A  E  1
A  F  0
A  G  0
A  H  0
and I would like to extract a subtable data2 and keep all line where V3 == 1 like:
V1 V2 V3
A  B  1
A  C  1
A  E  1
I did it by using a loop but it's not very elegant.
How to do this without a complex loop?
 
     
     
    