Re: [R] Finding regions of overlap

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Fri 12 Aug 2005 - 23:30:50 EST


Am I missing something? It seems quite easy to me:

Suppose the intervals are (l1, u1), (l2, u2), ..., (ln, un).  The
intersection, if non-empty, would be (max(l1, ..., ln), min(u1, ..., un)),
and the union (min(l1, ..., ln), max(u1, ..., un)).

Andy

> From: Sean Davis
>
> I have a number of regions consisting of (start,end) pairs.
> I would like to
> find regions of overlap among various sets of these regions. In other
> words, I would like to find unions/intersections of arbitrary sets of
> regions. Does this smell of anything anyone has already done?
>
> Thanks,
> Sean
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Aug 12 23:36:02 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:47 EST