Re: [R] change a specific time into seconds since midnight

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Tue 04 Jul 2006 - 23:47:00 EST

Try this:

library(chron)
24 * 60 * 60 * times("10:49:48")

On 7/4/06, Jan Grimsrud Davidsen <Jan.Davidsen@nfh.uit.no> wrote:
> Does anyone know a code which can transfer a column with time into seconds since midnight?
>
> Example: (10:49:48) --> 38988
>
> Thanks :-)
>
>
>
> Jan Grimsrud Davidsen
>
> --------------------------------------------------------------------------------------
>
> PhD student
>
> Norwegian College of Fishery Science
> University of Tromsų
>
>
>
>
> [[alternative HTML version deleted]]
>
>
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jul 04 23:49:32 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 05 Jul 2006 - 00:16:33 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.