Learn R Programming

ipeadatar (version 0.1.0)

ipeadata: Returns a database about the requested series

Description

Returns a list with available database about the requested series.

Usage

ipeadata(code, language = c("en", "br"), quiet = FALSE)

Arguments

code

A character vector with Ipeadata code.

language

String specifying the selected language. Language options are English ("en", default) and Brazilian portuguese ("br").

quiet

Logical. If FALSE (default), a progress bar is shown.

Value

A data frame containing Ipeadata code, date, value, territorial unit name and country or territorial code of requested series.

References

This R package uses the Ipeadata API. For more information go to http://www.ipeadata.gov.br/.

See Also

available_series, available_territories

Examples

Run this code
# NOT RUN {
# Data from
# "JPM366_EMBI366": J.P. Morgan Emerging Markets Bond Index (EMBI+), Brazil
# "SGS366_NASDAQ366": Nasdaq Composite Index - closed
data <- ipeadata(code = c("JPM366_EMBI366", "SGS366_NASDAQ366"))
# Data from
# "PRECOS12_IPCA12": Extended National Consumer Price Index (IPCA), Brazil
# in Brazilian portuguese
dataBR <- ipeadata(code = "PRECOS12_IPCA12", language = "br")
# Regional data from
# "CONSUMOTOT": Electric energy consumption, Brazil
dataReg <- ipeadata(code = "CONSUMOTOT")

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab