title: Write each column from each stock prices - R Studio
body: <p>Here are the codes I start:</p>
  
  <pre><code>mdate &lt;- "2016-01-04"
  edate &lt;- "2016-03-09"
  tickers &lt;- 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 &lt;- cbind(High_Raw, getSymbols(ticker, from = mdate, to = edate, auto.assign = F))
  </code></pre>
  
  <p>As you expected the matrix shows 
        Open_ABG,    High_ABG,    Low_ABG...... Open_ACH,    High_ACH....and so on. </p>
  
  <p>I want to organize these data like;
      Open_ABG,    Open_ACH...  Open_ASA,         High_ABG,    High ACH....    High_ASA,       Low_ABG.....   and so on</p>
  
  <p>I know that I can use a code;</p>
  
  <pre><code>High_Raw &lt;- cbind(High_Raw, getSymbols(ticker, from = mdate, to = edate, auto.assign = F))[,2] 
  Low_Raw &lt;- cbind(Low_Raw, getSymbols(ticker, from = mdate, to = edate, auto.assign = F)[,3]
  </code></pre>
  
  <p>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. </p>
  
  <p>What can I do to do this? </p>