Title: | API Wrapper for 'Ipeadata' |
---|---|
Description: | Allows direct access to the macroeconomic, financial and regional database maintained by Brazilian Institute for Applied Economic Research ('Ipea'). This R package uses the 'Ipeadata' API. For more information, see <http://www.ipeadata.gov.br/>. |
Authors: | Luiz Eduardo S. Gomes [aut, cre], Jessyka A. P. Goltara [ctb] |
Maintainer: | Luiz Eduardo S. Gomes <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.6 |
Built: | 2025-02-28 04:16:46 UTC |
Source: | https://github.com/gomesleduardo/ipeadatar |
Returns a list with available countries from Ipeadata API database.
available_countries(language = c("en", "br"))
available_countries(language = c("en", "br"))
language |
String specifying the selected language. Language options are
English ( |
A data frame containing 3-letter country code and name of available countries.
Returns a list with available series from Ipeadata API database.
available_series(language = c("en", "br"))
available_series(language = c("en", "br"))
language |
String specifying the selected language. Language options are
English ( |
A data frame containing Ipeadata code, name, theme, source, frequency, last update and activity status of available series.
The original language of the available series' names were preserved.
Returns a list with available subjects from Ipeadata API database.
available_subjects(language = c("en", "br"))
available_subjects(language = c("en", "br"))
language |
String specifying the selected language. Language options are
English ( |
A data frame containing code and name of available subjects.
Returns a list with available Brazilian territorial divisions from Ipeadata API database.
available_territories(language = c("en", "br"))
available_territories(language = c("en", "br"))
language |
String specifying the selected language. Language options are
English ( |
A data frame containing unit name, code, name and area (in km2) of Brazilian territorial divisions.
Returns a list with available database about the requested series.
ipeadata(code, language = c("en", "br"), quiet = FALSE)
ipeadata(code, language = c("en", "br"), quiet = FALSE)
code |
A character vector with Ipeadata code. |
language |
String specifying the selected language. Language options are
English ( |
quiet |
Logical. If |
A data frame containing Ipeadata code, date, value, territorial unit name and country or territorial code of requested series.
The Ipeadata codes may be required by available_series()
.
This R package uses the Ipeadata API. For more information go to http://www.ipeadata.gov.br/.
available_series
, available_territories
## Not run: # Data from # "PAN_RRPE": Average real income from effective main work, Brazil data <- ipeadata(code = "PAN_RRPE", language = "br") ## End(Not run)
## Not run: # Data from # "PAN_RRPE": Average real income from effective main work, Brazil data <- ipeadata(code = "PAN_RRPE", language = "br") ## End(Not run)
Returns a list with metadata information about the requested series.
metadata(code, language = c("en", "br"), quiet = FALSE)
metadata(code, language = c("en", "br"), quiet = FALSE)
code |
A character vector with Ipeadata code. |
language |
String specifying the selected language. Language options are
English ( |
quiet |
Logical. If |
A data frame containing Ipeadata code, name, short comment, last update, theme name, source's name and full name, source's URL, frequency, unity, multiplier factor, status, subject code and the country or territorial code of requested series.
The original language of the available series' names and the comments were preserved.
The Ipeadata codes may be required by available_series()
.
This R package uses the Ipeadata API. For more information go to http://www.ipeadata.gov.br/.
available_series
, available_subjects
,
available_territories
## Not run: # Metadata from # "PRECOS12_IPCA12": Extended National Consumer Price Index (IPCA), Brazil meta <- metadata(code = "PRECOS12_IPCA12") ## End(Not run)
## Not run: # Metadata from # "PRECOS12_IPCA12": Extended National Consumer Price Index (IPCA), Brazil meta <- metadata(code = "PRECOS12_IPCA12") ## End(Not run)
Returns a list with searched series by terms from Ipeadata API database.
search_series(terms = NULL, fields = c('name'), language = c("en", "br"))
search_series(terms = NULL, fields = c('name'), language = c("en", "br"))
terms |
A character vector with search terms. |
fields |
A character vector with table fields where matches are sought. See 'Details'. |
language |
String specifying the selected language. Language options are
English ( |
The fields
options are "code"
, "name"
, "theme"
,
"source"
, "freq"
, "lastupdate"
and "status"
.
A data frame containing Ipeadata code, name, theme, source, frequency, last update and activity status of searched series.
The original language of the available series' names were preserved.