Re: [R] difftime arguments

2006-03-16 Thread Christoph Buser
Hi Fred First of all, I have put the email back on the R-list. Please answer by reply to all (including the list). Others might have similar problems and others might have additional proposals, respectively. You should not confound typeof() and class() Try > class(g) and you will see that your

Re: [R] difftime arguments

2006-03-15 Thread Christoph Buser
Dear Fred You should change your code from > x <- strptime(ts, "%m/%d/%y %I:%M:%S %p") to > x <- strptime(ts, "%m/%d/%Y %I:%M:%S %p") "Y" instead of "y", since your year includes the century (2006 and not 06) Then it should work. Regards, Christoph

[R] difftime arguments

2006-03-15 Thread Fred J.
Hi I just started using RGui.exe under widnows. I have a text file containing date arranged in columns and rows, each column has the same format, each row with different formats. 3 of the columns are something like this 1/12/2006 3:59:45 PM I need to calculate the different in seconds b