Learn R Programming

BETS (version 0.4.9)

BETSsearch: Search for a Brazilian Economic Time Series

Description

Searches the BETS databases for a time series by its description, source, periodicity, code, data, unit of measurement and database name.

Usage

BETSsearch(description = "*", src, periodicity, unit, code, start,
  view = FALSE, lang = "en")

Arguments

description

A character. A search string to look for matching series descriptions. Check the syntax rules under the 'Details' section for better performance.

src

A character. The source of the series. See the 'Details' section for a list of the available sources.

periodicity

A character. The periodicity of the series. See the 'Details' section for a list of possible values.

unit

A character. The unit of measurement of the data. See the 'Details' section for a list of possible values.

code

An integer. The index of the series within the database.

start

A date. Starting date of the series.

view

A boolean. The default is TRUE. If set to FALSE, the output's head will be printed in your console as a data.frame.

lang

A character. The search language. The default is "en" for english, but "pt" for portuguese is also possible.

Value

A list that can be interpreted as a data.frame. The fields are described below.

code The code/index of the series within the database
description The description of the series
periodicity The periodicity of the series
start Starting date of the series
source The source of the series

Details

  • Syntax rules for the parameter description, the search string to look for matching series descriptions:

    1. To search for alternative words, separate them by white spaces. Example: description = "ipca core" means that the series description must contain 'ipca' AND'core'

    2. To search for whole expressions, surround them with ' '. Example: description = "'core ipca' index" means that the series description must contain 'core ipca' AND 'index'

    3. To exclude words from the search, insert a ~ before each of them. Example: description = "ipca ~ core" means that the series description must contain 'ipca' AND must NOT contain 'core'

    4. To exclude whole expressions from the search, surround them with code' ' and insert a ~ before each of them. Example: description = "~ 'ipca core' index" means that the series description must contain 'index' AND must NOT contain 'core ipca'

    5. It is possible to search for multiple words or expressions and to negate multiple words or expressions, as long as the preceeding rules are observed.

    6. The white space after the negation sign (~) is not required. But the white spaces AFTER expressions or words ARE required.

  • Possible values for the parameter src:

    IBGE Brazilian Institute of Geography and Statistics
    BCB Central Bank of Brazil
    FGV Getulio Vargas Foundation
    FGv-IBRE Getulio Vargas Foundation - Brazilian Institute of Economics
    BCB e FGV Central Bank of Brazil and Getulio Vargas Foundation
    BCB-Deban Cetral Bank of Brazil - Department of Banking and Payments
    BCB-Depin Central Bank of Brazil - Department of International Reserves
    BCB-Derin Central Bank of Brazil - Department of International Affairs
    BCB-Desig Central Bank of Brazil - Department of Financial Monitoring
    BCB-Secre Central Bank of Brazil - Executive Secretariat
    BCB-Demab Central Bank of Brazil - Department of Open Market Operations
    BCB-Denor Central Bank of Brazil - Department of Financial System Regulation
    BCB-Depec Central Bank of Brazil - Department of Economics
    Sisbacen Central Bank of Brazil Information System

  • Possible values for the parameter periodicity:

    A anual data
    M monthly data
    Q quaterly data
    W weekly data

  • Possible values for the parameter unit:

    R$ brazilian reais
    $ US dolars

References

Central Bank of Brazil

Examples

Run this code
# NOT RUN {
#not run
#BETSsearch(description="sales",view = FALSE)


#BETSsearch(src="Denor", view = FALSE)


#BETSsearch(periodicity="A", view = FALSE)


# }

Run the code above in your browser using DataLab