title: How to fix dplyr filter() Error in UseMethod("filter_")
body: <p>When I try to select a data from the data matrix that I have created I receive an error, I would like that someone can help me out and fix it.</p>
  
  <blockquote>
    <p>Error in UseMethod("filter_") :    no applicable method for 'filter_'
    applied to an object of class "c('matrix', 'double', 'numeric')"</p>
  </blockquote>
  
  <p>I have tried to call out the function by doing dplyr::
  or by using some pipe operations mydata %>% filter(2010)  or even installed and loaded package "conflicted" and gave the dplyr an priority but nothing works. I am new with r.</p>
  
  <pre><code>Matrix_5c_AVG_Year  &lt;- cbind(AVG_SWE_YEAR,AVG_NO[,2],AVG_FI[,2],AVG_EE[,2],AVG_LV[,2],AVG_LT[,2])
  colnames(Matrix_5c_AVG_Year) &lt;- c("Year","AVG_SWE1", "AVG_NO1", "AVG_FI1", "AVG_EE1", "AVG_LV1", "AVG_LT1") 
  mydata&lt;-Matrix_5c_AVG_Year  
  mydata %&gt;% filter(2010)
  </code></pre>
  
  <p>I would like to get an output of only the row of 2010 data and perferably be able to select only one header.</p>