Hi everyone,
I am stuck and would really appreciate if someone can help me out here. I have a dataset where two variables id2 and year identifies each row uniquely. I would like to create a date variable for each id-year case that populates daily date observations. For instance, I have the dataset which looks like this
and I would like to make it look like this, where the dots (.) show continuation of the date variable until 31-Dec
I could probably do this in excel but the dataset size limits me to open this up in Excel. Any help is much appreciated.
I am stuck and would really appreciate if someone can help me out here. I have a dataset where two variables id2 and year identifies each row uniquely. I would like to create a date variable for each id-year case that populates daily date observations. For instance, I have the dataset which looks like this
id2 | year |
115511 | 2014 |
115511 | 2015 |
115511 | 2016 |
115512 | 2014 |
115512 | 2017 |
115512 | 2013 |
115521 | 2014 |
115521 | 2015 |
and I would like to make it look like this, where the dots (.) show continuation of the date variable until 31-Dec
id2 | year | Date |
115511 | 2014 | 1-Jan-14 |
115511 | 2014 | 2-Jan-14 |
115511 | 2014 | . |
115511 | 2014 | . |
115511 | 2014 | 31-Dec-14 |
115511 | 2015 | 1-Jan-15 |
115511 | 2015 | 2-Jan-15 |
115511 | 2015 | . |
115511 | 2015 | . |
115511 | 2015 | 31-Dec-15 |
I could probably do this in excel but the dataset size limits me to open this up in Excel. Any help is much appreciated.
Comment