[Quantmod-commits] r590 - pkg/R
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Sun Dec 23 12:36:57 CET 2012
Author: jryan
Date: 2012-12-23 12:36:55 +0100 (Sun, 23 Dec 2012)
New Revision: 590
Modified:
pkg/R/getSymbols.R
Log:
o fixed TZ issue in getSymbols.yahoo by using "Date" indexing
by default.
Modified: pkg/R/getSymbols.R
===================================================================
--- pkg/R/getSymbols.R 2012-12-19 03:45:13 UTC (rev 589)
+++ pkg/R/getSymbols.R 2012-12-23 11:36:55 UTC (rev 590)
@@ -244,7 +244,8 @@
unlink(tmp)
if(verbose) cat("done.\n")
fr <- xts(as.matrix(fr[,-1]),
- as.POSIXct(fr[,1], tz=Sys.getenv("TZ")),
+ as.Date(fr[,1]),
+ #as.POSIXct(fr[,1], tz=Sys.getenv("TZ")),
src='yahoo',updated=Sys.time())
colnames(fr) <- paste(toupper(gsub('\\^','',Symbols.name)),
c('Open','High','Low','Close','Volume','Adjusted'),
More information about the Quantmod-commits
mailing list