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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Aug 24 15:04:39 CEST 2012


Author: braverock
Date: 2012-08-24 15:04:39 +0200 (Fri, 24 Aug 2012)
New Revision: 2259

Modified:
   pkg/PerformanceAnalytics/R/chart.TimeSeries.R
Log:
- explicitly call xts's time() fn to avoid bad behavior by RMetrics TimeSreies, patch from Garrett See


Modified: pkg/PerformanceAnalytics/R/chart.TimeSeries.R
===================================================================
--- pkg/PerformanceAnalytics/R/chart.TimeSeries.R	2012-08-20 18:56:36 UTC (rev 2258)
+++ pkg/PerformanceAnalytics/R/chart.TimeSeries.R	2012-08-24 13:04:39 UTC (rev 2259)
@@ -226,7 +226,7 @@
 	)
     }
     # Needed for finding aligned dates for event lines and period areas
-    rownames = as.Date(time(y))
+    rownames = as.Date(xts:::time.xts(y))
     rownames = format(strptime(rownames,format = date.format.in), date.format)
 
     time.scale = periodicity(y)$scale



More information about the Returnanalytics-commits mailing list