Learn R Programming

nowcasting (version 0.1.3)

month2qtr: Monthly to quarterly transformation

Description

It transforms a monthly time series in a quarterly one, selecting the last month of the quarter to represent the value of the quarter.

Usage

month2qtr(x)

Arguments

x

a ts or mts in monthly frequency

Value

The correspondent quarterly transformation.

Examples

Run this code
# NOT RUN {
# Selecting only last month of matrix time series BRGDP:
month2qtr(BRGDP)

# Vehicle production in the quarter from vehicle production in the month
month2qtr(stats::filter(BRGDP[,3],c(1,1,1),sides=1))

# }

Run the code above in your browser using DataLab