Re: [R] Help with passing in name of XTS file into write.table as a variable.

2014-05-09 Thread MacQueen, Don
It is a simple change. If you don't save the results of getSymbol() into a variable, then it's not available for write.table() to write. Try mydata <- getSymbols(ticker,from='1990-01-01') write.table( mydata, {etc}) The help for write.table says that "x" (the first argument to write.table),

[R] Help with passing in name of XTS file into write.table as a variable.

2014-05-08 Thread yanni...@gmail.com
Hi y'all, I'm using quantmod's getSymbols function, which retrieves data in XTS format. I'm trying to pass "IBM" into the "ticker" variable, then write the table referencing "ticker." However, when I run the write.table command, it writes "IBM", not the data inside IBM. Do you have any thoughts