title: Delete rows where any column contains number
body: <p>This is almost certainly a duplicate question, but I can't find an an answer anywhere on SO. Most of the other similar questions relate to subsetting from one column, rather than an entire dataframe.</p>
  
  <p>I have a dataframe:</p>
  
  <pre><code>test = data.frame(
  'A' = c(.31562, .48845, .27828, -999),
  'B' = c(.5674, 5.7892, .4687, .1345),
  'C' = c(-999, .3145, .0641, -999))
  </code></pre>
  
  <p>I want to drop rows where <em>any</em> column contains -999, so that my dataframe will look like this:</p>
  
  <pre><code>           A      B         C
  2    0.48845 5.7892    0.3145
  3    0.27828 0.4687    0.0641
  </code></pre>
  
  <p>I am sure there is an easy way to do this with the subset() function, or apply(), but I just can't figure it out. </p>
  
  <p>I tried this:</p>
  
  <pre><code>test[apply(test, MARGIN = 1, FUN = function(x) {-999 != x}), ]
  </code></pre>
  
  <p>But it returns:</p>
  
  <pre><code>              A      B         C
  1       0.31562 0.5674 -999.0000
  2       0.48845 5.7892    0.3145
  4    -999.00000 0.1345 -999.0000
  NA           NA     NA        NA
  NA.1         NA     NA        NA
  NA.2         NA     NA        NA
  NA.3         NA     NA        NA
  NA.4         NA     NA        NA
  NA.5         NA     NA        NA
  </code></pre>