Title: | Download Data from the Bank of Mexico |
---|---|
Description: | Provides functions to scrape IQY calls to Bank of Mexico, downloading and ordering the data conveniently. |
Authors: | Eduardo Flores |
Maintainer: | Eduardo Flores <[email protected]> |
License: | CC0 |
Version: | 0.9.0 |
Built: | 2025-03-08 06:02:40 UTC |
Source: | https://github.com/eflores89/banxicor |
A dataset containing the id's for some Banxico series.
BanxicoCatalog
BanxicoCatalog
A data frame with 133 rows and 9 variables:
Parent or theme of data series
Level one category
Level two category
Level three category
Level four category
Level five category
Level six category
Frequency of data (i.e. monthly)
ID to pass to banxico series
Returns data.frame with metadata and data from banxico_series()
in data.frame form. Each metadata data is replicated in its corresponding column.
compact_banxico_series(series)
compact_banxico_series(series)
series |
series ID |
Eduardo Flores
## Not run: df <- compact_banxico_series("SF110168") ## End(Not run)
## Not run: df <- compact_banxico_series("SF110168") ## End(Not run)
See details
banxico_parsetrim(string, trim_begin = TRUE) banxico_parsemeta(slist, lookfor, exclude = FALSE)
banxico_parsetrim(string, trim_begin = TRUE) banxico_parsemeta(slist, lookfor, exclude = FALSE)
string |
x |
trim_begin |
y |
slist |
z |
lookfor |
m |
exclude |
d |
banxico_parsetrim
translates banxico trimesters to dates.
banxico_parsemeta
extracts metadata from banxico iqy call.
# trimester string <- "Jan-Mar 2015" trim <- banxico_parsetrim(string)
# trimester string <- "Jan-Mar 2015" trim <- banxico_parsetrim(string)
Returns data.frame with BANXICO data series. Use banxico_series2 for the new API (Beta mode).
banxico_series(series, metadata = FALSE, verbose = FALSE, mask = FALSE) banxico_series2(series, token, metadata = FALSE, mask = FALSE)
banxico_series(series, metadata = FALSE, verbose = FALSE, mask = FALSE) banxico_series2(series, token, metadata = FALSE, mask = FALSE)
series |
Series ID |
metadata |
If TRUE returns list with metadata information |
verbose |
If TRUE prints steps while executing. Not available for banxico_series2 |
mask |
if TRUE names data column "value", not the id |
data.frame
Eduardo Flores
# Bank of Mexico international reserves ## Not run: reserves <- banxico_series("SF110168") ## End(Not run)
# Bank of Mexico international reserves ## Not run: reserves <- banxico_series("SF110168") ## End(Not run)