cpi | R Documentation |
Time series of US quarterly CPI (consumer price index) data Q4 1959 to Q4 2020 (245 values) for studying inflation. These data were sourced from the OECD webpage and represent the total ‘perspective’ on inflation, including food and energy. They have been based to have a value of 100 in 2015.
data(cpi)
An object of class "xts"
.
data(cpi)
plot(cpi)
X <- (diff(log(cpi))[-1]) * 100
plot(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.