Here are the codes I start:
mdate <- "2016-01-04"
edate <- "2016-03-09"
tickers <- c("ABG","ACH","ADM","AEG","AEM","AGQ","AGRO","AKOb","APO","ARCO","ASA") # actual tickers should be more than 2000
for(ticker in tickers)
High_Raw <- cbind(High_Raw, getSymbols(ticker, from = mdate, to = edate, auto.assign = F))
As you expected the matrix shows Open_ABG, High_ABG, Low_ABG...... Open_ACH, High_ACH....and so on.
I want to organize these data like; Open_ABG, Open_ACH... Open_ASA, High_ABG, High ACH.... High_ASA, Low_ABG..... and so on
I know that I can use a code;
High_Raw <- cbind(High_Raw, getSymbols(ticker, from = mdate, to = edate, auto.assign = F))[,2]
Low_Raw <- cbind(Low_Raw, getSymbols(ticker, from = mdate, to = edate, auto.assign = F)[,3]
but, there are errors; High_Raw contains 50 tickers and Low_Raw has 100 tickers because of errors. Since I try to import more than 2000 companies' data, this way wouldn't work for this.
What can I do to do this?