I am working of data that has wave number and they represent the data for a certain month of a certain year. The data is bi-monthly so an increment in wave column means the increase of 2 months The column of wave looks something like this: |wave| |----| |1 | |1 | |1 | |2 | |2 | |3 | |3 | |3 | |4 | |5 | |5 | |5 | |7 | |8 |
Now from this I want to create a date column that corresponds to the wave number. I have values of wave ranging from 1 to 64. I want to add the column of date in my data frame as follows
wave | date |
---|---|
1 | jan2012 |
1 | jan2012 |
1 | jan2012 |
2 | mar2012 |
2 | mar2012 |
3 | may2012 |
3 | may2012 |
3 | may2012 |
4 | jul2012 |
5 | sep2012 |
5 | sep2012 |
5 | sep2012 |
6 | nov2012 |
7 | jan2013 |