I have the following time-series dataset sample here:
ymd rf
19820103 3
19820104 9
19820118 4
19820119 2
19820122 0
19820218 5
Now the dataset is supposed to be organized in a daily time-series manner. More specifically, ymd is supposed to range continuously from 19820101 through 19820230. However, as you can see from the sample above, the dataset is not continuous and does not contain days such as "19820101" and "19820102", etc. For these dates where the dataset is unavailable, I'd like to be able to include the missing days and enter a "0" value for the rf.
What would be the best way to make a script to automate this problem? I'll have to do this from 1979 through 2016 daily time-series datasets.