[R] Reading and converting time data via read.table

Ek Esawi esawiek at gmail.com
Wed Jun 8 00:26:08 CEST 2016


Thanks Petr!



I am still unable to come up with a conversion formula/trick to convert my
time data to POSIXlt which then can be used in read.table. Below are again
a few lines from my file. Since as you see there are several columns of
time data ONLY (no date), I am hoping that there is a way to convert the
time columns to POSIXlt or chron in the read.table statement. I was able to
use as.Date in the read.table to convert the dates.


Thanks-EK



       O         Date      Name     Time     Inter     Dura      Prep     Hht
     Pred

1 312171  7/1/1995     Old-1   13:37     1:43     4:42       13:16   162
13:19

2 358237 5/25/1993    Old-2   12:22     1:31     4:16       12:03   160
12:13

3 339971 7/17/1994    Old-3   15:54     1:23     4:36       15:43   160
 15:51

	[[alternative HTML version deleted]]



More information about the R-help mailing list