title: quantmod R- not using list of stocks
body: <p>I have a data frame with a column with the list of stocks.</p>
  
  <pre><code>paraCot$sigla
  
   [1] "AEN.BA"   "AGRO.BA"  "ALUA.BA"  "AUSO.BA"  "BHIP.BA"  "BMA.BA"   "BOLT.BA"  "BPAT.BA" 
   [9] "BRIO.BA"  "CADO.BA"  "CAPU.BA"  "CAPX.BA"  "CARC.BA"  "CECO2.BA"
  </code></pre>
  
  <p>and so on.
  I want to download the prices for each one. I tried quantmod package.</p>
  
  <pre><code>Symbols=paste(shQuote(paraCot$sigla, type='cmd'), collapse=',')
  
  Stocks = lapply(Symbols, 
                  function(sym) {  na.omit(getSymbols(sym, from='2015-07-01', auto.assign=FALSE))
  })
  </code></pre>
  
  <p>But I get an error.</p>
  
  <blockquote>
    <p>...download failed after two attempts. Error message: HTTP error 404.</p>
  </blockquote>
  
  <p>I tried introducing a list and using the same function and it works.</p>
  
  <pre><code>l=c("GAL", "AGRO.BA")
  Stocks = lapply(l, 
                  function(sym) {  na.omit(getSymbols(sym, from='2015-07-01', auto.assign=FALSE))
                  })
  </code></pre>
  
  <p>I guess this is related to the type of data that is Symbols, but I see a list split by comma and each element enclosed by quotations.</p>
  
  <p>Thanks.</p>