[Returnanalytics-commits] r2736 - pkg/PortfolioAnalytics/R
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Wed Aug 7 00:23:17 CEST 2013
Author: rossbennett34
Date: 2013-08-07 00:23:17 +0200 (Wed, 07 Aug 2013)
New Revision: 2736
Modified:
pkg/PortfolioAnalytics/R/charts.ROI.R
Log:
correcting way to specify permutations for chart.Scatter.ROI
Modified: pkg/PortfolioAnalytics/R/charts.ROI.R
===================================================================
--- pkg/PortfolioAnalytics/R/charts.ROI.R 2013-08-06 22:18:06 UTC (rev 2735)
+++ pkg/PortfolioAnalytics/R/charts.ROI.R 2013-08-06 22:23:17 UTC (rev 2736)
@@ -101,7 +101,8 @@
# If the user does not pass in rp, then we will generate random portfolios
if(is.null(rp)){
- if(!hasArg(permutations)) permutations <- 2000
+ permutations <- match.call(expand.dots=TRUE)$permutations
+ if(is.null(permutations)) permutations <- 2000
rp <- random_portfolios(portfolio=ROI$portfolio, permutations=permutations)
}
More information about the Returnanalytics-commits
mailing list