Re: [R] Reading time/date string

2007-08-09 Thread Matthew Walker
Thanks Mark, that was very helpful. I'm now so close! Can anyone tell me how to extract the value from an instance of a difftime class? I can see the value, but how can I place it in a dataframe? time_string1 - 10:17:07 02 Aug 2007 time_string2 - 13:17:40 02 Aug 2007 time1 -

Re: [R] Reading time/date string

2007-08-09 Thread Prof Brian Ripley
On Thu, 9 Aug 2007, Matthew Walker wrote: Thanks Mark, that was very helpful. I'm now so close! Can anyone tell me how to extract the value from an instance of a difftime class? I can see the value, but how can I place it in a dataframe? as.numeric(time_delta) Hint: you want the

[R] Reading time/date string

2007-08-08 Thread Matthew Walker
Hello everyone, Can anyone tell me what function I should use to read time/date strings and turn them into a form such that I can easily calculate the difference of two? The strings I've got look like 10:17:07 02 Aug 2007. If I could calculate the number of seconds between them I'd be very

Re: [R] Reading time/date string

2007-08-08 Thread Mark W Kimpel
Look at some of these functions... DateTimeClasses(base) Date-Time Classes as.POSIXct(base)Date-time Conversion Functions cut.POSIXt(base)Convert a Date or Date-Time Object to a Factor format.Date(base) Date Conversion Functions to and from Character Mark --- Mark W.