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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Sep 23 14:54:42 CEST 2010


Author: braverock
Date: 2010-09-23 14:54:42 +0200 (Thu, 23 Sep 2010)
New Revision: 399

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

Modified: pkg/blotter/R/updatePortf.R
===================================================================
--- pkg/blotter/R/updatePortf.R	2010-09-20 11:52:08 UTC (rev 398)
+++ pkg/blotter/R/updatePortf.R	2010-09-23 12:54:42 UTC (rev 399)
@@ -74,7 +74,7 @@
     }
 	
 	if(!is.timeBased(Dates)) Dates = time(Portfolio$summary[Dates])
-	startDate = xts:::.parseISO8601(first(Dates))$first.time-1 #does this need to be a smaller delta for millisecond data?
+	startDate = first(xts:::.parseISO8601(Dates))$first.time-1 #does this need to be a smaller delta for millisecond data?
 	# trim summary slot to not double count, related to bug 831 on R-Forge, and rbind new summary 
 	if(attr(Portfolio,'initDate')>=startDate | length(Portfolio$summary)==0){
 		Portfolio$summary<-summary #changes to subset might not return a empty dimnames set of columns



More information about the Blotter-commits mailing list