convert_to_2018_dollars: Convert to 2018-Dollars

Description Usage Arguments Value Note

Description

Convert a dollar value to its inflation-adjusted 2018 dollar value. Two time series from the US Bureau of Labor Statistics (BLS) are provided: all goods (CUSR0000SA0) and all good less shelter (CUSR0000SA0L2).

Usage

1
2
convert_to_2018_dollars(value, date_string, cpi,
  series_title = "less_shelter")

Arguments

value

numeric

date_string

character, a date-like character string in the following pattern: "YYYY-MM-DD"

cpi

list, the cpi list object

series_title

character, either "less_shelter" (default) or "all"

Value

a named list (length == 2) contained named vectors of the inflation adjustment rate for each year.

Note

A list of all the BLS series id codes is available here: https://download.bls.gov/pub/time.series/cu/cu.series


tiernanmartin/NeighborhoodChangeTypology documentation built on May 17, 2019, 1:02 p.m.