Re: [R] How to find series of small numbers in a big vector?

From: Vladimir Eremeev <>
Date: Tue 30 Jan 2007 - 11:34:34 GMT

I would try using na.contiguos from package stats.

R.utils has seqToIntervals.defaul,
which "Gets all contigous intervals of a vector of indices".

(I didn't use the latter,"contiguous") gave me that name).

View this message in context:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Tue Jan 30 22:38:05 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 30 Jan 2007 - 12:30:26 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.