rebase: Uses CPI data to convert prices from a base year to a desired...

Description Usage Arguments Value

Description

Does a whole bunch of cool stuff

Usage

1
rebase(price, in_yr, to_yr = 2010)

Arguments

price

Either a single price or a vector of prices

in_yr

The year in which prices are listed. If vector, then rebase is calculated item-wise. That is, the i-th price is posted in the i-th in_yr USD.

to_yr

The year prices are to be rebased in. By default, rebase converts to 2010 USD.

Value

A vector of prices


bdempe18/toolR documentation built on June 14, 2019, 12:03 a.m.