title: Separating and comparing complete cases and NA elements in a vector
body: <p>I have a vector with numerical and NA elements.
  For example,</p>
  
  <pre><code>data&lt;-c(.4, -1, 1, NA, 8, NA, -.4)
  data[complete.cases(data), ]
  </code></pre>
  
  <p>But what's the function to separate them into different vectors so I can compare them using graphs such as a boxplot and ECDF?</p>