Re: [R] Diff time returns 2 hours when there is 1

2015-01-13 Thread PIKAL Petr
n-Ye > Sent: Tuesday, January 13, 2015 12:38 PM > To: r-help@r-project.org > Subject: [R] Diff time returns 2 hours when there is 1 > > Greetings! I am analysing my data and checking for gaps over 1 hour and > come across the problem that R tells me that there are many 2 hour

Re: [R] Diff time returns 2 hours when there is 1

2015-01-13 Thread Duncan Murdoch
On 13/01/2015 3:37 AM, Jue Lin-Ye wrote: > Greetings! I am analysing my data and checking for gaps over 1 hour and > come across the problem that R tells me that there are many 2 hour gaps. > When I go into details, I don't see any of these lapses. Is it something > with the diff() function? > > Y

[R] Diff time returns 2 hours when there is 1

2015-01-13 Thread Jue Lin-Ye
Greetings! I am analysing my data and checking for gaps over 1 hour and come across the problem that R tells me that there are many 2 hour gaps. When I go into details, I don't see any of these lapses. Is it something with the diff() function? You can see what I am saying, below: ​M<-matrix(c(199