| Type: | Package | 
| Title: | Download Data from the Bank of Mexico | 
| Version: | 0.9.0 | 
| Author: | Eduardo Flores | 
| Maintainer: | Eduardo Flores <eduardo@enelmargen.org> | 
| Description: | Provides functions to scrape IQY calls to Bank of Mexico, downloading and ordering the data conveniently. | 
| License: | CC0 | 
| Imports: | rvest, stringr, xml2 | 
| LazyData: | TRUE | 
| RoxygenNote: | 5.0.1 | 
| NeedsCompilation: | no | 
| Packaged: | 2016-08-17 13:39:01 UTC; eduardoflores | 
| Repository: | CRAN | 
| Date/Publication: | 2016-08-17 20:05:25 | 
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
Returns data series from BANXICO
Description
Returns data.frame with BANXICO data series
Usage
banxico_series(series, metadata = FALSE, verbose = FALSE, mask = FALSE)
Arguments
series | 
 Series ID  | 
metadata | 
 If TRUE returns list with metadata information  | 
verbose | 
 If TRUE prints steps while executing  | 
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)
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)