estbanr 0.1.1
-
estban_download()now decides whether a file is a zip archive by its bytes, not by its name: in September 2026 the Central Bank served the February 2026 file as a plain CSV under the202602_ESTBAN_AG.csv.zipname, and the month was silently skipped as “not published”. - Fixed the download success message, which raised a
clierror withverbose = TRUE(an interpolated expression starting with a dot).
estbanr 0.1.0
Initial release.
-
Download and read.
estban_url()knows the file-name variants the Central Bank has used;estban_download()tries them in order, unzips and keeps an idempotent cache (estban_cache_dir(): argument, thenESTBANR_CACHE_DIR, then option, thentempdir());estban_read()parses the Latin-1,;-separated files into typed tibbles withsnake_casenames and an optional state filter;estban_fetch()does it for a range of months. -
Layout and dictionary.
estban_columns()andestban_verbetes()describe the columns of both file families (agencia,municipio) and parse the COSIF account codes, including the combined columns. -
Non-reports.
estban_flag_nonreport()detects institution-months published with every account at zero;estban_impute_nonreport()interpolates interior gaps per institution, municipality and account without extrapolating;estban_by_municipality()aggregates to the municipality in wide or long form, imputing by default. - A small real extract (four municipalities of PE and PB, January 2024) ships in
inst/extdata/so examples, tests and vignettes run offline.