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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Sep 23 14:56:33 CEST 2010


Author: braverock
Date: 2010-09-23 14:56:32 +0200 (Thu, 23 Sep 2010)
New Revision: 400

Modified:
   pkg/blotter/R/updatePosPL.R
Log:
- reverse order of .parseISO8601 and first to allow full xts style strings to be passed

Modified: pkg/blotter/R/updatePosPL.R
===================================================================
--- pkg/blotter/R/updatePosPL.R	2010-09-23 12:54:42 UTC (rev 399)
+++ pkg/blotter/R/updatePosPL.R	2010-09-23 12:56:32 UTC (rev 400)
@@ -30,8 +30,8 @@
     
 
 	# line up Prices dates with Dates set/index/span passed in.
-	startDate = xts:::.parseISO8601(first(Dates))$first.time-1 #does this need to be a smaller/larger delta for millisecond data?
-	endDate   = xts:::.parseISO8601(last(Dates))$last.time
+	startDate = first(xts:::.parseISO8601(Dates))$first.time-1 #does this need to be a smaller/larger delta for millisecond data?
+	endDate   = last(xts:::.parseISO8601(Dates))$last.time
 	dateRange = paste(startDate,endDate,sep='::')
 	
 	#subset Prices by dateRange too...



More information about the Blotter-commits mailing list