title: R: How to filter/subset a sequence of dates
body: <p>I have this data: (complete for December)</p>
  <pre><code>      date     sessions
  1   2014-12-01  1932
  2   2014-12-02  1828
  3   2014-12-03  2349
  4   2014-12-04  8192
  5   2014-12-05  3188
  6   2014-12-06  3277
  </code></pre>
  <p>And a need to subset/filter this, for example from &quot;2014-12-05&quot; to &quot;2014-12-25&quot;</p>
  <p>I know that you can create a sequence with the operator &quot;:&quot;.</p>
  <p>Example: b &lt;- c(1:5)</p>
  <p>But How to filter a sequence? I tried this</p>
  <pre><code>NewDate &lt;- filter(Dates, date(&quot;2014-12-05&quot;:&quot;2014-12-12&quot;))
  </code></pre>
  <p>But says:</p>
  <blockquote>
  <p>Error: unexpected symbol in: &quot;NewDate &lt;- filter(Dates,
  date(&quot;2014-12-05&quot;:&quot;2014-12-12&quot;) NewDate&quot;</p>
  </blockquote>