Re: [R] How to deal with thousands of seconds in R?

2012-10-09 Thread Agustin Lobo
Sorry for the typo, I meant thousandths, and thanks for pointing out the %OS format, which I had overlooked Agus On Tue, Oct 9, 2012 at 2:51 PM, Prof Brian Ripley wrote: > On 09/10/2012 09:54, Agustin Lobo wrote: >> >> If I do: >>> >>> a >> >> [1] "2012_10_01_14_13_32.445" >>> >>> a2 >> >> [1] "

Re: [R] How to deal with thousands of seconds in R?

2012-10-09 Thread Prof Brian Ripley
On 09/10/2012 09:54, Agustin Lobo wrote: If I do: a [1] "2012_10_01_14_13_32.445" a2 [1] "2012_10_01_14_13_32.500" strptime(a,format="%Y_%M_%d_%H_%M_%S")-strptime(a2,format="%Y_%M_%d_%H_%M_%S") Time difference of 0 secs Is there any time object in R that would deal with thousands of second

[R] How to deal with thousands of seconds in R?

2012-10-09 Thread Agustin Lobo
If I do: > a [1] "2012_10_01_14_13_32.445" > a2 [1] "2012_10_01_14_13_32.500" > strptime(a,format="%Y_%M_%d_%H_%M_%S")-strptime(a2,format="%Y_%M_%d_%H_%M_%S") Time difference of 0 secs Is there any time object in R that would deal with thousands of seconds? Thanks Agus -- -- Dr. Agustin Lobo I