base_extraction: Create a real time data base

Description Usage Arguments References Examples

View source: R/base_extraction.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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))
## End(Not run)

nmecsys/nowcasting documentation built on July 15, 2019, 12:57 p.m.