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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Jun 15 21:33:29 CEST 2012


Author: braverock
Date: 2012-06-15 21:33:29 +0200 (Fri, 15 Jun 2012)
New Revision: 1053

Modified:
   pkg/blotter/R/addTxn.R
Log:
- revert Date check

Modified: pkg/blotter/R/addTxn.R
===================================================================
--- pkg/blotter/R/addTxn.R	2012-06-15 17:06:16 UTC (rev 1052)
+++ pkg/blotter/R/addTxn.R	2012-06-15 19:33:29 UTC (rev 1053)
@@ -42,7 +42,7 @@
     pname <- Portfolio
     PrevPosQty = getPosQty(pname, Symbol, TxnDate)
     
-    if(!is.timeBased(TxnDate) || is.Date(TxnDate)){
+    if(!is.timeBased(TxnDate) ){
         TxnDate<-as.POSIXct(TxnDate)
     }
     



More information about the Blotter-commits mailing list