Learn R Programming

blscrapeR (version 4.0.1)

inflation_adjust: Convert the Value of a US Dollar to a Given month on or after 1947.

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_date = NA, ...)

Value

A tibble from the BLS API.

Arguments

base_date

= A string argument to represent the base month that you would like dollar values converted to. For example, if you want to see the value of a Jan. 2015 dollar in Jan. 2023, you would select "2015-01-01" as a base date and find Jan 2023 in the table.

...

additional arguments

Examples

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

Run the code above in your browser using DataLab