title: Dropping dates except specific year from panel data
body: <p>I have panel data from 2000 to 2017. I want to select rows which are 2005.</p>
  
  <p>Amazingly</p>
  
  <pre><code>mydata &lt;- subset(mydata, select= c(mydata$Year&gt;="2005"))
  </code></pre>
  
  <p>did not work. Any suggestion?</p>