Re: [R] Convert Time Variable to Numeric

2009-11-24 Thread Don MacQueen
Perhaps something like: as.numeric(chron(times.=c('01:23:21','11:12:13'))) [1] 0.05788194 0.46681713 -Don At 7:02 AM -0800 11/24/09, RanjanV wrote: Hello Everyone I am new to R I would like to know how to deal with Time Variable. If I have a column of containing Time data in the format of

[R] Convert Time Variable to Numeric

2009-11-24 Thread RanjanV
Hello Everyone I am new to R I would like to know how to deal with Time Variable. If I have a column of containing Time data in the format of hh:mm:ss such as 00:56:45, 01:24:36, 01:41:25, and so on.. I could find averages for this column using the Chron package. But now I need to plot a gr