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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Jun 29 22:28:43 CEST 2012


Author: braverock
Date: 2012-06-29 22:28:42 +0200 (Fri, 29 Jun 2012)
New Revision: 1089

Modified:
   pkg/blotter/R/updatePosPL.R
Log:
- fix another incompatible methods warning as reported by Garrett See and Jan Hume

Modified: pkg/blotter/R/updatePosPL.R
===================================================================
--- pkg/blotter/R/updatePosPL.R	2012-06-28 16:15:59 UTC (rev 1088)
+++ pkg/blotter/R/updatePosPL.R	2012-06-29 20:28:42 UTC (rev 1089)
@@ -39,7 +39,7 @@
         Dates = time(prices[Dates])
     }
 
-    if(.parseISO8601(Dates)$first.time < first(index(prices)) || is.na(.parseISO8601(Dates)$first.time)){
+    if(.parseISO8601(Dates)$first.time < as.POSIXct(first(index(prices))) || is.na(.parseISO8601(Dates)$first.time)){
         Dates<-index(prices[paste('/',.parseISO8601(Dates)$last.time,sep='')])
     }
     



More information about the Blotter-commits mailing list