cpi_inflator_general_date: CPI for general dates

View source: R/cpi_general_date.R

cpi_inflator_general_dateR Documentation

CPI for general dates

Description

Deprecated in favour of grattanInflators::cpi_inflator

Usage

cpi_inflator_general_date(from_nominal_price = 1, from_date, to_date, ...)

Arguments

from_nominal_price

(numeric) the nominal prices to be converted to a real price

from_date

(character, date-like) the 'date' contemporaneous to from_nominal_price. The acceptable forms are 'YYYY', 'YYYY-YY' (financial year), 'YYYY-MM-DD', and 'YYYY-Q[1-4]' (quarters). Note a vector cannot contain a mixture of date forms.

to_date

(character, date-like) the date at which the real price is valued (where the nominal price equals the real price). Same forms as for from_date

...

other arguments passed to cpi_inflator

Value

A vector of real prices in to_date dollars.


HughParsonage/grattan documentation built on April 1, 2024, 4:10 a.m.