Learn R Programming

nowcasting (version 1.1.4)

base_extraction: Create a real time data base

Description

Create a time series matrix mts extracting information from Bacen (Banco Central do Brasil) API.

Usage

base_extraction(series_code)

Arguments

series_code

Vector with the series encoding following the Bacen (Banco Central do Brasil) standards.

References

Central Bank of Brazil

Examples

Run this code
# NOT RUN {
# Extracting GDP serie at real-time from Central Bank of Brasil data base
# }
# NOT RUN {
gdp<-base_extraction(22099)
# Industrial production (21859) serie at real-time from Central Bank of Brasil data base
ind_prod<-base_extraction(21859)

# Creating real time data base with the series: 
# Vehicles production (1373);
# Industrial production, general index (21859).
mybase<-base_extraction(c(1373,21859))

# Creating real time data base with the series: 
# Exchange rate - Free - United States dollar (1);
#  Interest rate - CDI (12).
mybase<-base_extraction(c(1,12))

# Creating real time data base with the series: 
# Vehicles production (1373);
# Credit Sales Index (1453);
# Retail sales (1455);
# Industrial production, general index (21859).
mybase<-base_extraction(c(1373,1453,1455,21859))
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab