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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Feb 10 21:37:54 CET 2011


Author: braverock
Date: 2011-02-10 21:37:53 +0100 (Thu, 10 Feb 2011)
New Revision: 552

Modified:
   pkg/blotter/R/getPosQty.R
Log:
- update getPosQty to use new columns functionality in getPos

Modified: pkg/blotter/R/getPosQty.R
===================================================================
--- pkg/blotter/R/getPosQty.R	2011-02-09 08:40:27 UTC (rev 551)
+++ pkg/blotter/R/getPosQty.R	2011-02-10 20:37:53 UTC (rev 552)
@@ -24,7 +24,7 @@
     # 
 
     # FUNCTION
-    PosQty = as.numeric(getPos(pname, Symbol, Date)[,"Pos.Qty"])
+    PosQty = as.numeric(getPos(pname, Symbol, Date, Columns='Pos.Qty'))
     return(PosQty)
 }
 



More information about the Blotter-commits mailing list