Re: [R] timediff

From: Achim Zeileis <Achim.Zeileis_at_wu-wien.ac.at>
Date: Tue 20 Jun 2006 - 21:13:26 EST

On Tue, 20 Jun 2006 12:38:11 +0200 COMTE Guillaume wrote:

>
>
> Hello,
>
>
>
> I've got 2 dates like these :
>
>
>
> "2006-02-08 17:12:55"
>
> "2006-02-08 17:15:26"
>
>
>
>
>
> I wish to get the middle of these two date :

There is a mean method for "POSIXct" objects:

  x <- as.POSIXct(c("2006-02-08 17:12:55", "2006-02-08 17:15:26"))   mean(x)

Best,
Z

>
>
> "2006-02-08 17 :14 :10"
>
>
>
> Is there is a function in R to do that ?
>
>
>
> Thks all
>
> guillaume
>
>
> [[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 Jun 20 21:22:10 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 Tue 20 Jun 2006 - 22:11:54 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.