Try this:
library(chron)
24 * 60 * 60 * times("10:49:48")
On 7/4/06, Jan Grimsrud Davidsen <[EMAIL PROTECTED]> 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]]
>
>
>
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html