I currently have an instance of R running on Solaris 8 Version 2.2.0
(2005-10-06 r35749)
Package: its Version: 1.0.9
Package: Hmisc Version: 3.0-1
I decided to build a new install on Linux RedHat As4.0 32 Bit running R
version 2.4.0 (2006-10-03)
Package: its Version: 1.1.4
Package: Hmisc Version: 3.1-1
Package: chron Version: 2.3-8
I am using the library(its) on both machines and one of the functions I
have been using for a long time is quantile to determine the 99% value
for a given days data set.
This works fine in the old instance of R but is not working on the new
build. The only diferrence I see is the library(its) requires
library(chron) to be installed on the newer version but not on the
original instance.
I read in a comma delimited file like the snippet below:
2006-10-16 09:00:01,1.01,23.23,1.98,0.99,1.98,10.89,2.00,0
2006-10-16 09:00:02,1.00,28.00,0,0,1.01,12.00,2.94,0
2006-10-16 09:00:03,1.00,24.00,0,0,1.98,18.00,2.00,0
2006-10-16 09:00:04,1.00,30.69,0,0.99,1.01,12.00,1.01,0
2006-10-16 09:00:05,2.00,26.00,0,0,1.98,15.00,1.98,0
2006-10-16 09:00:06,1.98,25.25,0,0,1.00,12.00,0,0
Etc.
To get the information I need I run the following:
library(its)
its.format("%Y-%m-%d %H:%M:%S")
x<-its(readcsvIts("datafilename"))
quantile(x[,1],c(.99))
quantile(x[,2],c(.99))
etc.
On the older version it returns the proper values, but on the new
install I get the following error:
> quantile(x[,1],c(.99))
Error in validObject(.Object) : invalid class "its" object: Dates must
be non-decreasing
Also what is interesting is when I type
* x[,1]
I get.
An object of class its
... then towards the end of the data I get the following..
2006-10-16 09:01:50 0.99
2006-10-16 09:01:51 1.00
Slot "dates":
[1] "2006-10-16 09:00:02 EDT" "2006-10-16 09:00:03 EDT"
[3] "2006-10-16 09:00:04 EDT" "2006-10-16 09:00:05 EDT"
[5] "2006-10-16 09:00:06 EDT" "2006-10-16 09:00:08 EDT"
I am not sure where the Slot "dates" is coming from.
If anyone could help it would greatly appreciated.
Thanks in advance.
~Lloyd
--------------------------------------------------------
If you are not an intended recipient of this e-mail, please notify the sender,
delete it and do not read, act upon, print, disclose, copy, retain or
redistribute it. Click here for important additional terms relating to this
e-mail. http://www.ml.com/email_terms/
--------------------------------------------------------
[[alternative HTML version deleted]]