inflation_adjust: Convert the Value of a US Dollar to a Given Year on or before...

View source: R/inflation.R

inflation_adjustR Documentation

Convert the Value of a US Dollar to a Given Year on or before 1913.

Description

Returns a data frame that uses data from the Consumer Price Index (All Goods) to convert the value of a US Dollar [$1.00 USD] over time.

Usage

inflation_adjust(base_year = NA, ...)

Arguments

base_year

= A string or integer argument to represent the base year that you would like dollar values converted to. For example, if you want to see the value of a 2007 dollar in 2015, you would select 2015 as a base year and find 2007 in the table.

...

additional arguments

Value

A tibble from the BLS API.

Examples

## Not run: 
## Get historical USD values based on a 2010 dollar.
values <- inflation_adjust(base_year = 2015)

## End(Not run)


blscrapeR documentation built on Sept. 17, 2022, 1:05 a.m.