inflation_adjust | R Documentation |
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.
inflation_adjust(base_year = NA, ...)
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 |
A tibble from the BLS API.
## Not run: ## Get historical USD values based on a 2010 dollar. values <- inflation_adjust(base_year = 2015) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.