Learn R Programming

nowcasting (version 0.0.82)

mestri: Monthly to quarterly agregation

Description

It transforsms a monthly time series in a quarterly.

Usage

mestri(x)

Arguments

x

Variable in month frequency

Value

The correpondent quarterly transformation or agregation.

Examples

Run this code
# NOT RUN {
# GDP index at market prices at quarterly frequency
pib<-mestri(lag(base_extraction(22099),-2))

# Industrial production selecting only last month
prod_ind<-mestri(base_extraction(21859))

# Selecting only last month of matrix time series vintage:
mestri_vintage<-mestri(vintage)

# Selecting only last month of first two columns of matrix time series vintage:
mestri_vintage<-mestri(vintage[,1:2])

# }

Run the code above in your browser using DataLab