[R] R issue with quantile using its package

From: Gilroy, Lloyd (GTI) <lloyd_gilroy_at_ml.com>
Date: Wed 18 Oct 2006 - 15:31:49 GMT


Frank,

Thanks for the reply so what I did in the interim was unistalled Hmisc and chron and used version 3.0-2 of Hmisc which doesn't have the dependency on chron, and reinstalled its version 1.1.4

However I still heave the issue, when I try to run the quantile command on the given dataset.

Thanks,

~Lloyd

Gilroy, Lloyd (GTI) wrote:
> 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

Lloyd - Charles Thomas Dupont will respond with the definitive information on this but I think that the later Hmisc required chron and it should not have. Thomas will fix that.

Frank

>
>
>
> 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]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt
University

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Thu Oct 19 01:53:03 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 18 Oct 2006 - 16:30:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.