An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20100809/6e155429/attachment.pl>
question in quantmod package
3 messages · Cedrick Johnson, Raghuraman Ramachandran
you could try: OHLC(get(stock)) and colnames(get(stock)) hth -c
On 08/09/2010 06:48 AM, Raghuraman Ramachandran wrote:
Hi I am trying to pass a stock's name as an argument to a function and then I am trying to use getSymbols to get data. For example, stock="AAPL" stock = getSymbols(stock) returns "AAPL" But, if I do an OHLC(stock) it cribs. Also colnames(stock) returns NULL as stock is still considered a string rather than an AAPL. How do I overcome this problem pls? Basically I want the variable stock to exactly mimic the returned object of getSymbols(). Thanks Raghu [[alternative HTML version deleted]]
_______________________________________________ R-SIG-Finance at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-finance -- Subscriber-posting only. If you want to post, subscribe first. -- Also note that this is not the r-help list where general R questions should go.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20100809/7f069f7c/attachment.pl>