Performance of my stock vs. cpi

Intro As a new years resolution, I made a promise to myself to be more conscious about the investments that I’m making. Of the few that I have, I’ve decided to look into the historical performance of one of the funds that I have. I want to compare the stock price increase over time with the overall consumer price for products in the U.S. (using the CPI-U). Using quantmod to see performance quantmod is an R package that makes it easy for users to track their stock.