# input

library(chron)
tt <- times(c("8:50:10", "9:40:20", "10:55:45"))
tt2 <- times(c("01:00:00", "02:00:00", "03:00:00"))
tt
tt2

# calc median and differences (although it will give results as fractions of
a day if there are negative results)

median(tt)
tt - tt2
tt2 - tt

On Tue, Dec 1, 2009 at 10:46 AM, uvilla <maruchave...@hotmail.com> wrote:

>
> Hi everybody
>
> How do I do to calculate the median and average of a colum of time data
> like
> this: "8:50:10". I also need to plot the time difference between two colums
> Thanks a lot
> --
> View this message in context:
> http://n4.nabble.com/median-for-time-data-tp932287p932287.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to