<html><body><div>Thanks for the response Nick.  I tried your suggestions and can't seem to get this to work.  I can pull in the tickers but the problem appears to be when it gets passed along to bdp where the tickers are not recognized. I pasted the tickers into excel and it starts in cell A1 and ends in A100.  Here's a small sample of what it looks like  </div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><img src="blob:https%3A//www.icloud.com/f751b152-ed24-4a87-a110-bf92d9d6d447"></div><div><br>On Apr 06, 2016, at 08:17 PM, Nick White <n-e-w@qtradr.net> wrote:<br><br></div><div><blockquote type="cite"><div class="msg-quote"><div dir="ltr">Yes - this is very easy. <div><br></div><div>Do you get the error message when you run the bdp command or when you try to run the read.csv command?</div><div><br></div><div>If it's after read.csv, can you supply an extract of the header row and the first row of tickers so we can see what your file looks like? How you read in a csv is largely a function of how you've set it up.<div><br></div><div>Alternatively, you could just paste in the result of</div><div><br></div><div>str(imp)</div><div><br></div><div>if the read.csv command succeeds.</div><div><br></div><div>The default behavior of read.csv is to convert strings to factors in a data frame. You want to preserve your tickers as characters, so typically you need to specify something like:</div><div><br></div><div>imp <- read.csv("xyz.csv", stringsAsFactors=FALSE, headers = TRUE)</div><div><br></div><div>otherwise your frame of tickers will be of type factor rather than string</div><div><br></div><div>assuming you have some structure in the csv like:</div><div><br></div><div>row 1: |ticker|</div><div>           --------</div><div>row 2  |SPY US Equity|</div><div>           --------</div></div><div><br></div><div>I suspect (though Dirk et al could confirm) that you're getting the 'expecting a string vector' error as you're not passing a character vector to bdp</div><div><br></div><div><br></div><div><br></div><div><br></div></div></div></blockquote></div></body></html>