[R] median for time data

Jannis bt_jannis at yahoo.de
Tue Dec 1 17:45:46 CET 2009


Hi,


try to convert this to the R time format "POSIXct" or "POSIXlt" via 
strptime(). Then you can simply substract them. I am not sure whether a 
median can be calculated though (should be possible as POSIXct stores 
the value as seconds since 1970....)

Best
Jannis

uvilla schrieb:
> 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




More information about the R-help mailing list