[Blotter-commits] r375 - pkg/blotter/R
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Tue Aug 17 21:34:36 CEST 2010
Author: braverock
Date: 2010-08-17 21:34:36 +0200 (Tue, 17 Aug 2010)
New Revision: 375
Modified:
pkg/blotter/R/calcPortfSummary.R
Log:
- patch submitted by Ben McCann for Tracker 1022
Modified: pkg/blotter/R/calcPortfSummary.R
===================================================================
--- pkg/blotter/R/calcPortfSummary.R 2010-08-17 18:43:35 UTC (rev 374)
+++ pkg/blotter/R/calcPortfSummary.R 2010-08-17 19:34:36 UTC (rev 375)
@@ -5,7 +5,7 @@
# Create portfolio summary with the following columns
# Long.Value, Short.Value, Net.Value, Trading.PL
- if(is.null(Dates) | is.na(Dates)) # if no date is specified, get all available dates
+ if(is.null(Dates) || is.na(Dates)) # if no date is specified, get all available dates
Dates = time(Portfolio[[1]]$posPL )
# else Dates = time(Portfolio[[1]]$posPL[Dates])
More information about the Blotter-commits
mailing list