[R] Time difference between two dates/timing

Rantony antony.akkara at ge.com
Thu Jun 14 12:08:25 CEST 2012


Hi,


Here, i have a matrix like this

MyMatrix <-

*DATETIME	 HEADER1            HEADER2*
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	               99.9393

i want to get the time difference in minutes between two date.

TimeDiff <- MyMatrix[1,1] -  MyMatrix[2,1] 
TimeDiff <- 10 (need to get like this )

Could you please help me ?


--
View this message in context: http://r.789695.n4.nabble.com/Time-difference-between-two-dates-timing-tp4633353.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list