I want to download all S&P 500 companies daily highest market price data like this by R. What is the esiest way I can do that. data would be like this
Date MSFT AAPL GOOGL
25-01-05 21.03 4.87 88.56
26-01-05 21.02 4.89 94.62
27-01-05 21.10 4.91 94.04
28-01-05 21.16 5.00 95.17
31-01-05 21.24 5.20 97.81
The quantmod provide that functionality.
Then, just grab the closing price i.e. the second column of each table. It will give you the list of 3 assets closing price.
In case you need a matrix: