[Xts-commits] r845 - pkg/xts/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Sep 6 17:22:46 CEST 2014


Author: bodanker
Date: 2014-09-06 17:22:46 +0200 (Sat, 06 Sep 2014)
New Revision: 845

Modified:
   pkg/xts/R/index.R
Log:
- Re-fix bug #5893 (r838); use isOrdered(x,,strictly=FALSE)


Modified: pkg/xts/R/index.R
===================================================================
--- pkg/xts/R/index.R	2014-09-05 13:12:13 UTC (rev 844)
+++ pkg/xts/R/index.R	2014-09-06 15:22:46 UTC (rev 845)
@@ -75,7 +75,7 @@
   else attr(x, 'index') <- as.numeric(as.POSIXct(value))
 
   # ensure new index is sorted
-  if(!isOrdered(.index(x)))
+  if(!isOrdered(.index(x), strictly=FALSE))
     stop("new index needs to be sorted")
 
   # set the .indexCLASS/tclass attribute to the end-user specified class



More information about the Xts-commits mailing list