Re: [R] Time difference between two dates/timing

2012-06-14 Thread arun
ences in mins [1] 10 10 attr(,"tzone") [1] "" A.K. - Original Message - From: Rantony To: r-help@r-project.org Cc: Sent: Thursday, June 14, 2012 6:08 AM Subject: [R] Time difference between two dates/timing Hi, Here, i have a matrix like this MyMatrix <- *D

Re: [R] Time difference between two dates/timing

2012-06-14 Thread John Kane
"%d/%m/%Y %H:%M")) diff(dtime[,1]) John Kane Kingston ON Canada > -Original Message- > From: antony.akk...@ge.com > Sent: Thu, 14 Jun 2012 03:08:25 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Time difference between two dates/timing > > Hi, >

Re: [R] Time difference between two dates/timing

2012-06-14 Thread R. Michael Weylandt
You have been asked before (by me!) to give reproducible examples using dput()... You might need the diff() function. Michael On Thu, Jun 14, 2012 at 5:08 AM, Rantony wrote: > Hi, > > > Here, i have a matrix like this > > MyMatrix <- > > *DATETIME        HEADER1            HEADER2* > 1/1/2010 0

[R] Time difference between two dates/timing

2012-06-14 Thread Rantony
Hi, Here, i have a matrix like this MyMatrix <- *DATETIMEHEADER1HEADER2* 1/1/2010 0:10 197.1947 100.0859 1/1/2010 0:20 203.8811 100.1013 1/1/2010 0:30 206.564 100.0433 1/1/2010 0:40 207.9563