title: Getting error: Error in UseMethod("filter") : no applicable method for 'filter' applied to an object of class "logical"
body: <p>I'm so confused because I thought that a logical expression is one of the parameters of a <code>filter()</code> function? Here is my code:</p>
  <pre><code>simplifyList &lt;- function(x) {
      x &lt;- x %&gt;% {
          filter(x$Q26 == &quot;Yes&quot;)
      }
  }
  simplifyList(a)
  </code></pre>
  <p>I've checked to make sure <code>a</code> is of the class <code>data.frame</code>, and adding <code>dplyr::</code> in front of <code>filter()</code> didn't do anything. I even updated the dplyr package in case that was the problem. Is there something I'm missing?</p>