I think it would be helpful if you could clarify youre question - do you want distinct sets - maybe use
unique() but why (5,20) when its (5,10) in the row in youre example? What criteria do you want the function to select the "sets" by and what kind of output do you need? Maybe it's just me who dosn't get the question..sr -- View this message in context: http://r.789695.n4.nabble.com/merge-function-in-R-tp2324684p2324844.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.