Dear R friends,
I have a data frame, I need to get a time interval between the two columns.
The times are recorded in 24 hour clock. My data frame is called
version.one.
my commands are:
t.s.one<-paste(version.one[,9])
t.s.two<-paste(version.one[,61])
x<-strptime(t.s.one,format="%H:%M")
x
y<-strptime(t.s.two ,format="%H:%M")
y
z<-difftime(y,x, units = "mins")
z

But now in my z object i have negative numbers. Would you please let me know
why? And how can I get rid of this problem?
Thanks
Mitra

	[[alternative HTML version deleted]]


