[Blotter-commits] r1530 - pkg/quantstrat/demo

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Oct 15 20:15:40 CEST 2013


Author: braverock
Date: 2013-10-15 20:15:40 +0200 (Tue, 15 Oct 2013)
New Revision: 1530

Modified:
   pkg/quantstrat/demo/faber.R
Log:
- remove unecessary na.omit from demo

Modified: pkg/quantstrat/demo/faber.R
===================================================================
--- pkg/quantstrat/demo/faber.R	2013-10-15 17:31:06 UTC (rev 1529)
+++ pkg/quantstrat/demo/faber.R	2013-10-15 18:15:40 UTC (rev 1530)
@@ -153,7 +153,6 @@
 	getSymbols("SPY", src='yahoo', index.class=c("POSIXt","POSIXct"), from='1999-01-01')
 	SPY<-to.monthly(SPY)
 	SPY.ret<-Return.calculate(SPY$SPY.Close)
-  SPY.ret<-na.omit(SPY.ret)
 	index(SPY.ret)<-index(ret1)
 	dev.new()
 	charts.PerformanceSummary(cbind(ret1$total,SPY.ret), geometric=FALSE, wealth.index=TRUE)



More information about the Blotter-commits mailing list