title: Error in UseMethod("select") : no applicable method for 'select' applied to an object of class "c('integer', 'numeric')"
body: <p>I am getting the above error message when I input the following syntax:</p>
  <pre class="lang-r prettyprint-override"><code>y &lt;- mydata_final_distinct %&gt;%
    select(Case_ID,starts_with (Effect_)) %&gt;% 
     pivot_longer(-Case_ID, names_to='symptoms', values_to=adr) %&gt;% 
     distinct(Case_ID,'symptoms',adr,.keep_all = TRUE) %&gt;%
     count(adr) %&gt;% 
     arrange(desc(n))
  </code></pre>