Package 'banxicoR'

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

Help Index


Catalog of some ID's

Description

A dataset containing the id's for some Banxico series.

Usage

BanxicoCatalog

Format

A data frame with 133 rows and 9 variables:

PARENT

Parent or theme of data series

LEVEL_1

Level one category

LEVEL_2

Level two category

LEVEL_3

Level three category

LEVEL_4

Level four category

LEVEL_5

Level five category

LEVEL_6

Level six category

FREQUENCY

Frequency of data (i.e. monthly)

ID

ID to pass to banxico series


Compacts data and metadata into a data.frame

Description

Returns data.frame with metadata and data from banxico_series() in data.frame form. Each metadata data is replicated in its corresponding column.

Usage

compact_banxico_series(series)

Arguments

series

series ID

Author(s)

Eduardo Flores

Examples

## Not run: 
df <- compact_banxico_series("SF110168")

## End(Not run)

Helper functions for banxico series

Description

See details

Usage

banxico_parsetrim(string, trim_begin = TRUE)

banxico_parsemeta(slist, lookfor, exclude = FALSE)

Arguments

string

x

trim_begin

y

slist

z

lookfor

m

exclude

d

Details

banxico_parsetrim translates banxico trimesters to dates. banxico_parsemeta extracts metadata from banxico iqy call.

Examples

# trimester
string <- "Jan-Mar 2015"
trim <- banxico_parsetrim(string)

Returns data series from BANXICO

Description

Returns data.frame with BANXICO data series. Use banxico_series2 for the new API (Beta mode).

Usage

banxico_series(series, metadata = FALSE, verbose = FALSE, mask = FALSE)

banxico_series2(series, token, metadata = FALSE, mask = FALSE)

Arguments

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

Value

data.frame

Author(s)

Eduardo Flores

Examples

# Bank of Mexico international reserves
## Not run: 
reserves <- banxico_series("SF110168")

## End(Not run)