I have dataset such as:
1.1.2013 12
2.1.2013 0
3.1.2013 0
4.1.2013 0
7.1.2013 2
8.1.2013 0
9.1.2013 0
10.1.2013 0
11.1.2013 0
14.1.2013 0
15.1.2013 49
16.1.2013 0
17.1.2013 0
18.1.2013 0
21.1.2013 0
22.1.2013 0
23.1.2013 1
I need to get a list of numbers which will indicate number of days between two non-zero observations.
(in reality, the dataset is much longer; it is in Excel in two columns)
As can be seen, the data are imported also with "00:00:00" which is not in Excel file. So it is NOT imported only as a date, but also with hours, minutes and seconds (always "00:00:00"). I do not know why. I want to import only what I have in Excel: dates (from the first column) and values (from the second column) and NOT the time (which is not stated in my Excel file).
Moreover, some dates are not reported in the Excel file (say Tuesdays), but I want such a code that will count also these "not reported" days.