title: How to conditionally delete rows in R?
body: <p>I have a date.frame that looks like:</p>
  
  <pre><code>        SNP              CLST A1 A2       FRQ IMP     POS CHR BVAL
  1   rs2803291            Brahui  C  T  0.660000   0 1882185   1  878
  2   rs2803291           Balochi  C  T  0.750000   0 1882185   1  878
  3   rs2803291            Hazara  C  T  0.772727   0 1882185   1  878
  4   rs2803291           Makrani  C  T  0.620000   0 1882185   1  878
  5   rs2803291            Sindhi  C  T  0.770833   0 1882185   1  878
  6   rs2803291            Pathan  C  T  0.681818   0 1882185   1  878
  53  rs12060022           Brahui  T  C 0.0600000   1 3108186   1  982
  54  rs12060022          Balochi  T  C 0.0416667   1 3108186   1  982
  55  rs12060022           Hazara  T  C 0.0000000   1 3108186   1  982
  56  rs12060022          Makrani  T  C 0.0200000   1 3108186   1  982
  57  rs12060022           Sindhi  T  C 0.0625000   1 3108186   1  982
  58  rs12060022           Pathan  T  C 1           1 3108186   1  982
  105   rs870171           Brahui  T  G 0.2200000   0 3332664   1  976
  106   rs870171          Balochi  T  G 0.3333330   0 3332664   1  976
  107   rs870171           Hazara  T  G 1           0 3332664   1  976
  108   rs870171          Makrani  T  G 1           0 3332664   1  976
  109   rs870171           Sindhi  T  G 0.2083330   0 3332664   1  976
  110   rs870171           Pathan  T  G 1           0 3332664   1  976
  157  rs4282783           Brahui  G  T 1           1 4090545   1  992
  158  rs4282783          Balochi  G  T 1           1 4090545   1  992
  159  rs4282783           Hazara  G  T 1           1 4090545   1  992
  160  rs4282783          Makrani  G  T 1           1 4090545   1  992
  161  rs4282783           Sindhi  G  T 1           1 4090545   1  992
  162  rs4282783           Pathan  G  T 1           1 4090545   1  992
  </code></pre>
  
  <p>I would like to delete all rows where every single line for the given SNP has a value of 1 in the <code>FRQ</code> column. For example, every rs4282783 has a value of 1 in the FRQ column so I would like to delete all of those rows. But I don't want to delete row 58 for example which has a 1 value in FRQ. Does anyone have any advice?</p>