Re: [R] Intersection of two sets of intervals

2009-04-15 Thread Thomas Meyer
[4,]20 24 On Wed, Apr 15, 2009 at 12:06 PM, Thomas Meyer wrote: Stavros, you are quite correct -- I discovered that the hard way a little while ago when testing my two-line solution. Use of pmin/pmax don't handle, for instance, cases where more than one interval in one set is wholly cont

Re: [R] Intersection of two sets of intervals

2009-04-15 Thread Thomas Meyer
ey -Oorspronkelijk bericht- Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Namens Thomas Meyer Verzonden: woensdag 15 april 2009 14:59 Aan: r-help@r-project.org Onderwerp: [R] Intersection of two sets of intervals Hi, Algorithm question: I have two sets of "

Re: [R] Intersection of two sets of intervals

2009-04-15 Thread Thomas Meyer
t ensure that a reasonable answer can be extracted from a given body of data. ~ John Tukey -Oorspronkelijk bericht- Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Namens Thomas Meyer Verzonden: woensdag 15 april 2009 14:59 Aan: r-help@r-project.org Onderwerp: [R] Inte

[R] Intersection of two sets of intervals

2009-04-15 Thread Thomas Meyer
1.5 2.0 2 5.0 10.0 I wonder if there's some ready-built functionality that might help me out. I'm new to R and am still learning to vectorize my code and my thinking. Or maybe there's a package for interval arithmetic that I can just pull off t