Say I have a .txt file with 130 dates in the format "yyyy-mm-dd" that represent the release of an inflation report. I want to create a series in my workfile of 5000 obs which only equals one if the dates from my .txt file coincide with the date index of the workfile, i.e. there should be 130 1's and 4870 0's.
As it stands now, I'm doing
- Code: Select all
and then manually going through and adding 1's where they should be.
I hope this explains my problem.