title: Using R cut function on dates
body: <p>I have a dataframe giving attendances at sports events</p>
  
  <pre><code>Crowd    matchDate
  2345      1993-01-26
  4567      1993-08-01
  8888      1994-03-02
  1298      1994-11-07
  9876      1995-09-01 etc
  
  1237      2011-09-09
  </code></pre>
  
  <p>The matchdate is a POSIXct class</p>
  
  <p>I want to be able to create a season factor based on the date such that each season runs from, say, 1st August to 31 July e.g factor 1992/3 would include dates 1992-08-01 to 1993-07-31</p>
  
  <p>ideally it would be a function that I could apply for several analyses, not necessarily with same start and end dates in the year</p>