Skip to content
Prev 132633 / 398506 Next

Finding overlaps in vector

Jim,

Although I can't find the post this code stems from, I had come across it on
my prowling the NG. It's not the one you had shared with me to eliminate
overlaps (and which I referenced below:
http://tolstoy.newcastle.edu.au/R/e2/help/07/07/21286.html). That
particular solution you had come up with marked entries as overlapping or
not, and I am looking for an extension to that code which would also return
the actual "clusters" of consecutively overlapping values. While Gabor's
code in this thread does what I require for the example I still hope
somebody more cluefull than myself can extent your code since it carries
the - for me - significant advantage of being able to build the windows of
overlap with different values for 'up' and 'down', let's say check which
values overlap when the overlap-defining distance is 5ppm 'up' and
7.5ppm 'down' from each value. This is a generalization I would highly
cherish.

Thanks for your help and continuous patience on r-help.

Joh
jim holtman wrote: