title: How to select some rows with specific date from a data frame in R
body: <p>I have a large dataset and I want to pick out some of the rows particularly, I am wondering if anyone could help me with this? Thank you so much for your help!!</p>
  
  <p>For example, if I just want pick out rows that are from 2/1/2008-5/1/2008 plus 9/1/2008-11/1/2008, how can I do that?
  Thank you very much!!</p>
  
  <p>Can anyone please help?</p>
  
  <pre><code>date    mpressure   mxtemp
  2008-01-01  1025.3  15.7
  2008-01-02  1025.6  16.0    &lt;   
  2008-01-03  1023.6  18.1    &lt;
  2008-01-04  1021.8  18.4    &lt;
  2008-01-05  1020.1  20.9    &lt;
  2008-01-06  1019.7  20.7
  2008-01-07  1018.4  24.0
  2008-01-08  1016.7  23.7
  2008-01-09  1015.3  24.5    &lt;
  2008-01-10  1014.3  21.8    &lt;
  2008-01-11  1012.9  23.4    &lt;
  </code></pre>
  
  <p>And then I will get something like this?</p>
  
  <pre><code>date    mpressure   mxtemp
  2008-01-02  1025.6  16.0    &lt;   
  2008-01-03  1023.6  18.1    &lt;
  2008-01-04  1021.8  18.4    &lt;
  2008-01-05  1020.1  20.9    &lt;
  2008-01-09  1015.3  24.5    &lt;
  2008-01-10  1014.3  21.8    &lt;
  2008-01-11  1012.9  23.4    &lt;
  </code></pre>