Dear list
I've got two variables that records the start time and stop time of an event. I would like to extract the number of days per year in a separate variable for each year. I can think of some ways to do this, but all involves a somewhat long-winded code. Do you have any ideas on how to accomplish this without lengthy and error prone coding?
Typical data:
Any suggestions would be very welcome.
Thomas
I've got two variables that records the start time and stop time of an event. I would like to extract the number of days per year in a separate variable for each year. I can think of some ways to do this, but all involves a somewhat long-winded code. Do you have any ideas on how to accomplish this without lengthy and error prone coding?
Typical data:
Code:
input id start stop 1 18536 19418 2 18536 19418 3 18809 19418 4 18567 19267 5 18567 19267 6 18506 19053 7 18232 18840 8 17806 18506 format start stop %td end
Thomas
Comment