Learn R Programming

blscrapeR (version 3.2.2)

inflation_adjust: 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, ...)

Value

A tibble from the BLS API.

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

Examples

Run this code
if (FALSE) {
## Get historical USD values based on a 2010 dollar.
values <- inflation_adjust(base_year = 2015)
}

Run the code above in your browser using DataLab