[Blotter-commits] r1612 - pkg/blotter/R
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Thu May 22 12:06:24 CEST 2014
Author: bodanker
Date: 2014-05-22 12:06:24 +0200 (Thu, 22 May 2014)
New Revision: 1612
Modified:
pkg/blotter/R/tradeStats.R
Log:
- Patch dailyStats to capture lowercase variants of 'use'
Thanks to Lou Belle for the report
Modified: pkg/blotter/R/tradeStats.R
===================================================================
--- pkg/blotter/R/tradeStats.R 2014-05-19 09:48:41 UTC (rev 1611)
+++ pkg/blotter/R/tradeStats.R 2014-05-22 10:06:24 UTC (rev 1612)
@@ -330,10 +330,10 @@
{
use=use[1] #take the first value if the user didn't specify
switch (use,
- Eq = , Equity =, cumPL = {
+ Eq =, eq =, Equity =, equity =, cumPL = {
dailyPL <- dailyEqPL(Portfolios)
},
- Txns =, Trades = {
+ Txns =, txns =, Trades =, trades = {
dailyPL <- dailyTxnPL(Portfolios)
}
)
More information about the Blotter-commits
mailing list