I have data.frame in the form:
Date
2011-08-16
2011-08-17
2011-08-28
2011-09-01
2011-09-05
2011-09-06
2011-10-01
2011-10-02
2011-10-03
2011-10-04
What I would like to do is take a start counter when the dates are in order, that is, they are side by side.
In the above example, we would have 2,1,1,2,4
source
share