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
(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
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(
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
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
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
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
?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
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
9 matches
Mail list logo