Re: [R] Handling Time in R

2011-10-10 Thread Alaios
ce for your help B.R Alex From: Jeff Newmiller Cc: "R-help@r-project.org" Sent: Monday, October 10, 2011 12:23 PM Subject: Re: [R] Handling Time in R No, read ?difftime and look at as.double. There is a units parameter that you must

Re: [R] Handling Time in R

2011-10-10 Thread Jeff Newmiller
(diff(c(ISOdatetime(2011,6,1,11,59,1.09),ISOdatetime(2011,6,5,11,59,1.09))),length=20) [1] 345600 _ From: Jeff Newmiller To: Alaios ; jim holtman Cc: "R-help@r-project.org" Sent: Monday, October 10, 2011 10:42 AM Subject: Re: [R] Handling

Re: [R] Handling Time in R

2011-10-10 Thread Alaios
gt; > >> > >From: jim holtman > >Cc: "R-help@r-project.org" >Sent: Friday, October 7, 2011 5:34 PM >Subject: Re: [R] Handling Time in R > >?ISOdatetime > > >> x <- ISOdatetime(2011,10,6,16,23,30.539) >> str(

Re: [R] Handling Time in R

2011-10-10 Thread Jeff Newmiller
1 5:34 PM Subject: Re: [R] Handling Time in R ?ISOdatetime > x <- ISOdatetime(2011,10,6,16,23,30.539) > str(x) POSIXct[1:1], format: "2011-10-06 16:23:30" > y <- ISOdatetime(2011,10,6,16,23,30.939) > difftime(y,x) Time difference of 0.399 secs > > Dear all, > I

Re: [R] Handling Time in R

2011-10-10 Thread Alaios
This did the trick as.numeric(diff(c(ISOdatetime(2011,6,1,11,59,1.09),ISOdatetime(2011,6,5,11,59,1.09 [1] 345600 From: Jim Holtman Cc: "R-help@r-project.org" Sent: Monday, October 10, 2011 9:26 AM Subject: Re: [R] Handling Time in R chec

Re: [R] Handling Time in R

2011-10-10 Thread Jim Holtman
g" > Sent: Friday, October 7, 2011 5:34 PM > Subject: Re: [R] Handling Time in R > > ?ISOdatetime > > > > x <- ISOdatetime(2011,10,6,16,23,30.539) > > str(x) > POSIXct[1:1], format: "2011-10-06 16:23:30" > > y <- ISOdatetime(2011,10,6,16

Re: [R] Handling Time in R

2011-10-10 Thread Alaios
Alex From: jim holtman Cc: "R-help@r-project.org" Sent: Friday, October 7, 2011 5:34 PM Subject: Re: [R] Handling Time in R ?ISOdatetime > x <- ISOdatetime(2011,10,6,16,23,30.539) > str(x) POSIXct[1:1], format: "2011-10-06 16:2

Re: [R] Handling Time in R

2011-10-07 Thread jim holtman
?ISOdatetime > x <- ISOdatetime(2011,10,6,16,23,30.539) > str(x) POSIXct[1:1], format: "2011-10-06 16:23:30" > y <- ISOdatetime(2011,10,6,16,23,30.939) > difftime(y,x) Time difference of 0.399 secs > On Fri, Oct 7, 2011 at 11:04 AM, Alaios wrote: > Dear all, > I would like to ask your hel

[R] Handling Time in R

2011-10-07 Thread Alaios
Dear all, I would like to ask your help regarding handling time stamps in R. I think first I need a reference to read about their logic and how I should handle them. For example, this is a struct I have str(MyStruct$TimeStamps)  num [1:100, 1:6] 2011 2011 2011 2011 2011 ... MyStruct$TimeStamp