[R] vector matching

2010-04-16 Thread Michael Nestrud
Hello all, I have searched the archives for a similar problem to no avail. I could use your help. I have a bunch of vectors organized into two matrices, x and y. These vectors (as rows) consist of combinations of elements such that order does not matter. I want to create a third matrix from

Re: [R] vector matching

2010-04-16 Thread Henrique Dallazuanna
If I understand: unique(t(apply(rbind(x, y), 1, sort))) On Fri, Apr 16, 2010 at 11:05 AM, Michael Nestrud m...@ataraxis.org wrote: Hello all, I have searched the archives for a similar problem to no avail.  I could use  your help. I have a bunch of vectors organized into two matrices, x