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),
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
2 matches
Mail list logo