CPI inflator
cpi_inflator(from_nominal_price = 1, from_fy = NULL, to_fy = NULL, adjustment = c("seasonal", "none", "trimmed.mean"), useABSConnection = FALSE, allow.projection = TRUE, accelerate.above = 100000L)
from_nominal_price | (numeric) the price (or vector of prices) to be inflated |
---|---|
from_fy, to_fy | (character) a character vector with each element in the form "2012-13" representing the financial years between which the CPI inflator is desired. If both |
adjustment | What CPI index to use ("none" = raw series, "seasonal", or "trimmed" [mean]). |
useABSConnection | Should the function connect with ABS.Stat via an SDMX connection? If If the SDMX connection fails, a message is emitted (not a warning) and
the function contines as if The internal data was updated on 2019-10-29 to 2019-Q2.
If using |
allow.projection | Should projections beyond the ABS's data be allowed? |
accelerate.above | An integer setting the threshold for 'acceleration'.
When the maximum length of the arguments exceeds this value, calculate each unique value individually
then combine. Set to 100,000 as a rule of thumb beyond which calculation speeds benefit
dramatically. Can be set to |
The value of from_nominal_price
in real (to_fy
) dollars.
cpi_inflator(100, from_fy = "2005-06", to_fy = "2014-15")#> [1] 126.2411