inflation_adjust {blscrapeR} | R Documentation |
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, ...)
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 |
Value
A tibble from the BLS API.
Examples
## Not run:
## Get historical USD values based on a dollar from Jan 2015.
values <- inflation_adjust(base_year = "2015-01-01")
## End(Not run)
[Package blscrapeR version 4.0.1 Index]