Hello,
I have a time series dataset with the following date variable format:
2000M09
2000M10
2000M11
And so on until 2015M09.
This variable is a string variable, which I would like to destring such that it can act as the date variable.
I have tried the functions date(date, "YM") and date(date, "YYYYMM") but it doesn't seem to work. My plan was then, once I have the numerical versions of my date variable, to format it to "monthly data".
Any ideas of how to destring this type of format (month year)?
Thank you very much in advance!
I have a time series dataset with the following date variable format:
2000M09
2000M10
2000M11
And so on until 2015M09.
This variable is a string variable, which I would like to destring such that it can act as the date variable.
I have tried the functions date(date, "YM") and date(date, "YYYYMM") but it doesn't seem to work. My plan was then, once I have the numerical versions of my date variable, to format it to "monthly data".
Any ideas of how to destring this type of format (month year)?
Thank you very much in advance!
Comment