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

Description Usage Arguments Examples

View source: R/inflation.R

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

1
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

Examples

1
2
## Get historical USD values based on a 2010 dollar.
values <- inflation_adjust(base_year = 2015)

blscrapeR documentation built on Dec. 18, 2019, 1:47 a.m.