title: Removing rows with certain year (date)
body: <p>My dataset contains two columns:</p>
  
  <ol>
  <li>dates with <code>Date</code> class, so not a string <code>yyyy-mm-dd</code>;</li>
  <li>a certain count.</li>
  </ol>
  
  <p>I want to remove all rows with the year 2017.</p>
  
  <p><code>df$date &gt; "2016-12-31"</code> (so using a > sign) keeps giving the warning </p>
  
  <blockquote>
    <p>"Error in date > "2016-12-31" : 
      comparison (6) is possible only for atomic and list types" </p>
  </blockquote>
  
  <p>in all the many, many many ways I've tried it. It seems that simply "&lt;" can't be used, even though these are most of the solutions online. Any idea how to remove rows with a certain year in another way?</p>