Learn R Programming

blscrapeR (version 3.0.1)

inflation_adjust: Convert the Value of a US Dollar to a Given Year

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.

Examples

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


# }

Run the code above in your browser using DataLab