Hi all,
How would I convert a table of annual values to quarterly? The table is a time series (converted from text values e.g. '2009') mapping a year to different values. Any thoughts appreciated. I'm trying to avoid reading in the data 4 times and melding it together - which I could do but seems ugly.
Input:
Year [Time Series] | A [Double] | B [Double] | C [Double] |
2008-01-01 | 1.1 | ? | ? |
2009-01-01 | 2.2 | 4.4 | ? |
2010-01-01 | 3.3 | 5.5 | 6.6 |
Desired Output:
Year | A | B | C |
---|---|---|---|
2008-03-31 | 1.1 | ? | ? |
2008-06-30 | 1.1 | ? | ? |
2008-09-30 | 1.1 | ? | ? |
2008-12-31 | 1.1 | ? | ? |
2009-03-31 | 2.2 | 4.4 | ? |
2009-06-30 | 2.2 | 4.4 | ? |
2009-09-30 | 2.2 | 4.4 | ? |
2009-12-31 | 2.2 | 4.4 | ? |
2010-03-31 | 3.3 | 5.5 | 6.6 |
2010-06-30 | 3.3 | 5.5 | 6.6 |
2010-09-30 | 3.3 | 5.5 | 6.6 |
2010-12-31 | 3.3 | 5.5 | 6.6 |