s-news
[Top] [All Lists]

chron command

To: s-news@lists.biostat.wustl.edu
Subject: chron command
From: "susan charman" <charmansusan@hotmail.com>
Date: Wed, 25 Apr 2001 13:55:34 -0000
Dear s-newsers
 
I'd be grateful for some help with the following problem (which may be very small!!) . I am using splus2000 for windows.
 
I am trying to create date & time objects so that I can use them later for sorting by date/time and to make comparisons of date/time. I have done the following so far, and as you can see only the dates printed out (and not the times) after using chron so I am not sure what it's done with the time. (Note my main file contains a few thousand records not just 20)
 
tempdate<-   as.character(testgp[,2])
temptime<-   as.character(testgp[,3])
nudates<-     chron(dates=tempdate,times=temptime,format=c("dd/mm/yyyy","hh:mm:ss"))
> nudates
 [1] 12/09/1999 03/03/2000 28/02/2000 20/02/2000 12/08/1999 13/10/1999 18/05/1999 09/02/2000 19/01/2000
[10] 17/10/1999 24/08/1999 02/03/2000 02/03/2000 05/10/1999 30/08/1999 07/09/1999 06/06/1999 18/05/1999
[19] 27/05/1999 19/01/2000
 
Very many thanks for any suggestions
 
Susan



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

<Prev in Thread] Current Thread [Next in Thread>
  • chron command, susan charman <=