I have a csv file with 2 columns: "Date" and "Ticker". Each date represents the date of the purchase of a "Ticker" in my personal portfolio. For example, SHOP is a ticker I purchased on 2016-24-03.
I would like to use getSymbols to find the closing price for all the tickers I have purchased. After doing so I would like to add those prices to a data Frame with their respective Date and Ticker. The end goal is to compare the return of the ticker versus the return of the SPY.
My issue is that I have not been able to figure out how to use getSymbols because my start date for each ticker is obviously different.
> Port
Date Ticker
1 2018-05-29 TRXC
2 2018-04-27 SHOP
3 2018-01-25 MTCH
4 2018-12-23 TTD
5 2018-05-22 CLNE
[r] getSymbols start date). - r2evansPort$Tickerinstead ofsymbols, andPort$Dateinstead ofbegin.date. If you just replace those two symbols, does it work? - r2evans