22
33# deflateBR
44
5- [ ![ AppVeyor Build
6- Status] ( https://ci.appveyor.com/api/projects/status/github/meirelesff/deflateBR?branch=master&svg=true )] ( https://ci.appveyor.com/project/meirelesff/deflateBR )
5+ <!-- badges: start -->
6+
7+ [ ![ R-CMD-check] ( https://github.com/meirelesff/deflateBR/actions/workflows/R-CMD-check.yaml/badge.svg )] ( https://github.com/meirelesff/deflateBR/actions/workflows/R-CMD-check.yaml )
8+ <!-- badges: end -->
79
810` deflateBR ` is an ` R ` package used to deflate nominal Brazilian Reais
911using several popular price indexes.
@@ -25,9 +27,11 @@ library(deflateBR)
2527
2628# Deflate January 2000 reais
2729deflate(nominal_values = 100 , nominal_dates = as.Date(" 2000-01-01" ), real_date = " 01/2018" )
28- # > Found valid cache for IPCA index (547 records)
29- # > Loading IPCA data from cache...
30- # > Loaded 547 records from cache (1979-12 to 2025-06)
30+ # > No cache found for IPCA index
31+ # > Cache not available, downloading from IPEA API...
32+ # > | | | 0% | |============= | 19% | |========================================= | 59% | |=========================================================== | 85% | |================================================================== | 94% | |======================================================================| 100%
33+ # > Saving IPCA data to cache...
34+ # > Cached 547 records for IPCA index
3135# > [1] 310.3893
3236```
3337
@@ -51,9 +55,11 @@ following options to the `index =` argument: `ipca`, `igpm`, `igpdi`,
5155``` r
5256# Deflate January 2000 reais using the INPC price index
5357deflate(100 , as.Date(" 2000-01-01" ), " 01/2018" , index = " inpc" )
54- # > Found valid cache for INPC index (556 records)
55- # > Loading INPC data from cache...
56- # > Loaded 556 records from cache (1979-03 to 2025-06)
58+ # > No cache found for INPC index
59+ # > Cache not available, downloading from IPEA API...
60+ # > | | | 0% | |================================================= | 70% | |======================================================================| 100%
61+ # > Saving INPC data to cache...
62+ # > Cached 556 records for INPC index
5763# > [1] 318.1845
5864```
5965
@@ -116,9 +122,11 @@ reference <- "01/2018"
116122
117123# Deflate using IGP-DI
118124head(deflate(df $ reais , df $ dates , reference , " igpdi" ))
119- # > Found valid cache for IGPDI index (978 records)
120- # > Loading IGPDI data from cache...
121- # > Loaded 978 records from cache (1944-01 to 2025-06)
125+ # > No cache found for IGPDI index
126+ # > Cache not available, downloading from IPEA API...
127+ # > | | | 0% | |=============== | 21% | |================= | 24% | |===================== | 30% | |======================================= | 56% | |======================================================================| 100%
128+ # > Saving IGPDI data to cache...
129+ # > Cached 978 records for IGPDI index
122130# > [1] 341.0412 342.7393 344.9315 345.5051 344.9379 346.6979
123131```
124132
0 commit comments