title: How to filter out where specific columns are all na
body: <p>Here is a sample dataset:</p>
  <pre><code>id &lt;- c(&quot;Item1&quot;,&quot;Item2&quot;,&quot;Item3&quot;,&quot;Item4&quot;,&quot;Item5&quot;,&quot;Item6&quot;)
  var1 &lt;- c(2,3,NA,NA,5,6)
  var2 &lt;- c(NA,3,5,NA,5,NA)
  var3 &lt;- c(NA,3,4,NA,NA,6)
  test &lt;- data.frame(id, var1, var2, var3)
  </code></pre>
  <p>I want to filter out where var1, var2 and var3 are all na. I know it can be done like this:</p>
  <pre><code>test1 &lt;- test %&gt;% filter(!(is.na(var1) &amp; is.na(var2) &amp; is.na(var3)))
  test1
  
       id var1 var2 var3
  1 Item1    2   NA   NA
  2 Item2    3    3    3
  3 Item3   NA    5    4
  4 Item5    5    5   NA
  5 Item6    6   NA    6
  </code></pre>
  <p>Is there a better way of doing this?</p>