Searches the BETS databases for a time series by its description, source, periodicity, code, data, unit of measurement and database name.
BETSsearch(description = "*", src, periodicity, unit, code, start,
view = FALSE, lang = "en")
A character
. A search string to look for matching series descriptions. Check the syntax rules under the 'Details' section for better performance.
A character
. The source of the series. See the 'Details' section for a list of the available sources.
A character
. The periodicity of the series. See the 'Details' section for a list of possible values.
A character
. The unit of measurement of the data. See the 'Details' section for a list of possible values.
An integer
. The index of the series within the database.
A date
. Starting date of the series.
A boolean
. The default is TRUE
. If set to FALSE
, the output's head
will be printed in your console as a data.frame
.
A character
. The search language. The default is "en" for english, but "pt" for portuguese is also possible.
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 |
Syntax rules for the parameter description
, the search string to look for matching series descriptions:
To search for alternative words, separate them by white spaces.
Example: description = "ipca core"
means that the series description must contain 'ipca' AND'core'
To search for whole expressions, surround them with ' '
.
Example: description = "'core ipca' index"
means that the series description must contain 'core ipca' AND 'index'
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'
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'
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.
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 |
Central Bank of Brazil
# 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