[Returnanalytics-commits] r3128 - pkg/PortfolioAnalytics/R
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Tue Sep 17 22:15:09 CEST 2013
Author: rossbennett34
Date: 2013-09-17 22:15:09 +0200 (Tue, 17 Sep 2013)
New Revision: 3128
Modified:
pkg/PortfolioAnalytics/R/extractstats.R
Log:
Adding ETL.ETL and ETL.MES to name.replace
Modified: pkg/PortfolioAnalytics/R/extractstats.R
===================================================================
--- pkg/PortfolioAnalytics/R/extractstats.R 2013-09-17 04:25:57 UTC (rev 3127)
+++ pkg/PortfolioAnalytics/R/extractstats.R 2013-09-17 20:15:09 UTC (rev 3128)
@@ -41,7 +41,7 @@
#' @param rnames character vector of names to check for cleanup
name.replace <- function(rnames){
rnames<-gsub("objective_measures.",'',rnames)
- matchvec<-c('mean.mean','median.median','ES.ES','CVaR.ES','ES.MES','CVaR.MES','VaR.MVaR','maxDrawdown.maxDrawdown','sd.sd','StdDev.StdDev')
+ matchvec<-c('mean.mean','median.median','ES.ES','ETL.ETL','CVaR.ES','ES.MES','ETL.MES','CVaR.MES','VaR.MVaR','maxDrawdown.maxDrawdown','sd.sd','StdDev.StdDev')
for(str in matchvec){
pos<-pmatch(str,rnames)
if(!is.na(pos)){
@@ -50,6 +50,7 @@
median.median = {rnames[pos]<-'median'},
CVaR.MES =, CVaR.ES = {rnames[pos]<-'CVaR'},
ES.MES =, ES.ES = {rnames[pos]<-'ES'},
+ ETL.MES =, ETL.ETL = {rnames[pos]<-'ETL'},
VaR.MVaR = {rnames[pos]<-'VaR'},
maxDrawdown.maxDrawdown = {rnames[pos]<-'maxDrawdown'},
sd.sd=, StdDev.StdDev = {rnames[pos]<-'StdDev'},
More information about the Returnanalytics-commits
mailing list