title: Exclude Blank and NA in R
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4862178/r-remove-rows-with-nas-in-data-frame">R - remove rows with NAs in data.frame</a>  </p>
  </blockquote>
  
  
  
  <p>I have a dataframe named sub.new with multiple columns in it. And I'm trying to exclude any cell containing <code>NA</code> or a <code>blank space</code> "<code></code>".<br>
  I tried to use <code>subset()</code>, but it's targeting specific column conditional. Is there anyway to scan through the whole dataframe and create a subset that no cell is either <code>NA</code> or <code>blank space</code> ?</p>
  
  <p>In the example below, only the first line should be kept:</p>
  
  <pre><code># ID               SNP             ILMN_Strand   Customer_Strand
  ID1234              [A/G]          TOP           BOT
  Non-Specific        NSB (Bgnd)     Green
  Non-Polymorphic     NP (A)         Red
  Non-Polymorphic     NP (T)         Purple
  Non-Polymorphic     NP (C)         Green
  Non-Polymorphic     NP (G)         Blue
  Restoration         Restore        Green
  </code></pre>
  
  <p>Any suggestions? Thanks</p>