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 on how to fix this? I imagine it's a simple change. Thank you much! ticker="IBM" getSymbols(ticker,from='1990-01-01') write.table(ticker,file="deleteme.csv", col.names=FALSE, sep=',') write.table(as.data.frame(ticker),file="deleteme2.csv", col.names=FALSE, sep=',') -- Yan Wu 510-333-3188 <http://bigkidsbighearts.org> yanni...@gmail.com [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.