powered by
It transforms a quarterly time series in a monthly one. The values of the quarterly ts are set to the last month of the quarter.
ts
qtr2month(x, reference_month = 3, interpolation = FALSE)
a ts or mts in quarterly frequency
mts
a integer to define the position of a quarter value in a quarter. Default is 3. The options are 1, 2 or 3.
logical. The NA values can be estimated by linear interpolation (approx function from stats package). Default is FALSE.
The correpondent monthly transformation.
# NOT RUN { # Selecting the quarterly GDP variable in BRGDP qtr2month(BRGDP$GDP) # }
Run the code above in your browser using DataLab