Inflate using a general index
inflator(
x = 1,
from,
to,
inflator_table,
index.col = "Index",
time.col = "Time",
roll = NULL,
max.length = NULL
)A vector of inflated values. For example, inflator_table = grattan:::cpi_seasonal_adjustment,
index.col = "obsValue", time.col = "obsTime", gives the CPI inflator.
The vector to be inflated.
The contemporaneous time of x.
The target time (in units of the inflator_table) to which x is to be inflated.
A data.table having columns index.col and time.col.
The column in inflator_table containing the index used for inflation.
The column in inflator_table by which times are mapped.
If NULL, inflation is calculated only on exact matches in inflator_table. Otherwise, uses a rolling join. See data.table::data.table.
(Internal use only). If not NULL, the maximum length of x,
from, and to known in advance. May be provided to improve the performance
if known.