Hello, I have a dataset with more than 20 million observations covering 40 years. Dataset is in below form date id1 var1 var2 date1 date2 01012000 14780 3 5 06202000 06292000 07251977 25489 0.8 1.9 09241977 10031977 I would like to count the number of observations within each 10-day interval and get the average for all intervals each year except for the dates between date1 and date2. The output should give the average number of observations in all 10-day intervals for each year excluding the ones between date1 and date2. I would be very glad if you could help. Thanks!
... View more