[Blotter-commits] r1569 - pkg/blotter/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Nov 11 03:54:15 CET 2013


Author: bodanker
Date: 2013-11-11 03:54:11 +0100 (Mon, 11 Nov 2013)
New Revision: 1569

Modified:
   pkg/blotter/R/updatePosPL.R
Log:
- patch Interval arg handling


Modified: pkg/blotter/R/updatePosPL.R
===================================================================
--- pkg/blotter/R/updatePosPL.R	2013-11-09 00:07:37 UTC (rev 1568)
+++ pkg/blotter/R/updatePosPL.R	2013-11-11 02:54:11 UTC (rev 1569)
@@ -44,7 +44,7 @@
             index(prices[paste('/',.parseISO8601(Dates)$last.time,sep='')])
         } else xts:::time.xts(prices[Dates])
     }
-    if(!is.null(Interval)) {
+    if(!missing(Interval) && !is.null(Interval)) {
         ep_args <- .parse_interval(Interval)
         prices <- prices[endpoints(prices, on=ep_args$on, k=ep_args$k)]
     }



More information about the Blotter-commits mailing list