[Returnanalytics-commits] r2310 - pkg/PerformanceAnalytics/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Jan 23 17:21:34 CET 2013


Author: peter_carl
Date: 2013-01-23 17:21:33 +0100 (Wed, 23 Jan 2013)
New Revision: 2310

Modified:
   pkg/PerformanceAnalytics/R/chart.RollingPerformance.R
Log:
- fixed fill parameter to behave with na.pad 


Modified: pkg/PerformanceAnalytics/R/chart.RollingPerformance.R
===================================================================
--- pkg/PerformanceAnalytics/R/chart.RollingPerformance.R	2013-01-23 16:17:52 UTC (rev 2309)
+++ pkg/PerformanceAnalytics/R/chart.RollingPerformance.R	2013-01-23 16:21:33 UTC (rev 2310)
@@ -36,7 +36,7 @@
 #' 		main = "Rolling 24-Month Sharpe Ratio")
 #' 
 #' @export 
-chart.RollingPerformance <- function (R, width = 12, FUN = "Return.annualized", ..., na.pad = TRUE, ylim=NULL, main=NULL, fill = if(na.pad) NA)
+chart.RollingPerformance <- function (R, width = 12, FUN = "Return.annualized", ..., na.pad = TRUE, ylim=NULL, main=NULL, fill = if(na.pad) NA else NULL)
 { # @author Peter Carl
 
     # DESCRIPTION:



More information about the Returnanalytics-commits mailing list