Skip to content
Prev 261548 / 398502 Next

Identifying sequences

I am assuming in this case that you are looking for continuity along
integers, so if you expect noninteger values this will not work.

You can get the index of where breaks can be found in your example using

which(diff(x) > 1)
On Wed, Jun 1, 2011 at 6:27 AM, christiaan pauw <cjpauw at gmail.com> wrote: