month2qtr: Monthly to quarterly transformation

Description Usage Arguments Value Examples

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

1
month2qtr(x, reference_month = 3)

Arguments

x

a ts or mts in monthly frequency

reference_month

a vector to define the reference month that will represent the quarter. Default is 3. The options are 1, 2, 3 or 'mean'.

Value

The correspondent quarterly transformation.

Examples

1
2
3
4
5
6
7
8
 ## Not run: 
# Selecting only the last month of time series IPCA:
month2qtr(BRGDP$base[,"IPCA"], reference_month = 3)

# Selecting only the first month of time series IPCA:
month2qtr(BRGDP$base[,"IPCA"], reference_month = 1)

## End(Not run)

nowcasting documentation built on Aug. 1, 2019, 9:04 a.m.