BETS.search: Search for a Brazilian Economic Time Series

Description Usage Arguments Details Value Note References Examples

View source: R/BETS.search.R

Description

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

Usage

1
2
BETS.search(description = "*", src, periodicity, unit, code, start,
  view = TRUE, 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 results are NOT going to be shown.

lang

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

Details

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
unit The unit of measurement of the data

Note

This function uses specific version of the RMySQL package. If it does not run correctly, try installing version 0.10.9 of the RMySQL package using:

> remove.packages("RMySQL") # If necessary > install.packages("devtools) # If necessary > devtools::install_version("DBI", version = "0.5", repos = "http://cran.us.r-project.org") > devtools::install_version("RMySQL", version = "0.10.9", repos = "http://cran.us.r-project.org")

References

Central Bank of Brazil

Examples

1
2
3
4
5
6
7
8
9
#not run
#BETS.search(description="sales",view = FALSE)
# Output: BETS-package: Found 55 out of 12981 time series

#BETS.search(src="Denor", view = FALSE)
# Output: BETS-package: Found 1 out of 12981 time series

#BETS.search(periodicity="A", view = FALSE)
# Output: BETS-package: Found 2308 of 12981 time series

pedrocostaferreira/BETS documentation built on June 1, 2020, 7:53 a.m.