[Blotter-commits] r99 - pkg/demo
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Mon Oct 12 19:11:23 CEST 2009
Author: jryan
Date: 2009-10-12 19:11:23 +0200 (Mon, 12 Oct 2009)
New Revision: 99
Modified:
pkg/demo/turtles.R
Log:
- fixed index.class of getSymbols to match POSIXct portfolio object
Modified: pkg/demo/turtles.R
===================================================================
--- pkg/demo/turtles.R 2009-10-12 16:48:39 UTC (rev 98)
+++ pkg/demo/turtles.R 2009-10-12 17:11:23 UTC (rev 99)
@@ -38,7 +38,7 @@
# Assemble a small portfolio of three stocks
symbols = c("XLF", "XLP", "XLE")#, "XLY", "XLV", "XLI", "XLB", "XLK", "XLU")
-getSymbols(symbols, from=initDate, source="yahoo")
+getSymbols(symbols, index.class="POSIXct", from=initDate, source="yahoo")
# getSymbols now defaults (as originally) to "Date" indexing. We can change to use POSIXct here.
# getSymbols(symbols, index.class=c("POSIXt","POSIXct"), from=initDate, source="yahoo")
More information about the Blotter-commits
mailing list