So I have a bunch of c(start,end) points and want to consolidate them into as few c(start,end) as possible.
For example: sample start end A 5 10 B 7 18 C 1 4 D 16 20 I'd want the function to return the two distinct sets (1,4) and (5,20) Is there an R function that already does this? or should I write my own? (how would I go about that?) -- View this message in context: http://r.789695.n4.nabble.com/merge-function-in-R-tp2324684p2324684.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.