Rochelle Braynen
Rochelle Braynen

Reputation: 1

Annual Data to quarterly data in R

So I have a data set that I would like to convert to quarters. So far I am able to convert from quarters to annual using the code below: data = Quandl("FRED/GDP", collapse="annual")

But I would like to do the reverse. Anything thoughts.

Upvotes: 0

Views: 698

Answers (1)

AidanGawronski
AidanGawronski

Reputation: 2085

Just remove the collapse argument:

data = Quandl("FRED/GDP")
# head(data)
# Date    Value
# 1 2017-10-01 19736.49
# 2 2017-07-01 19500.60
# 3 2017-04-01 19250.01
# 4 2017-01-01 19057.71
# 5 2016-10-01 18905.54
# 6 2016-07-01 18729.13

Upvotes: 1

Related Questions