Re: [R] intersection between two matrices based on two columns in R

2015-09-09 Thread Jeff Newmiller
Ergh... DYAC. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research E

Re: [R] intersection between two matrices based on two columns in R

2015-09-09 Thread David Winsemius
On Sep 9, 2015, at 12:39 PM, Lida Zeighami wrote: > Hi there, > > I want to find the intersection between two different data frame or > matrices based on two columns. > for example in matrix A I have 5 columns, the first two columns are Id1 and > Id2 and I have the same columns in the other matr

Re: [R] intersection between two matrices based on two columns in R

2015-09-09 Thread Duncan Murdoch
On 09/09/2015 3:48 PM, Jeff Newmiller wrote: > Matrices and data frames are write different. For this you most likely want > to use days frames. ... > Sent from my phone. Please excuse my brevity. ... and your auto-correct. ;-) Duncan Murdoch __ R-h

Re: [R] intersection between two matrices based on two columns in R

2015-09-09 Thread Bert Gunter
I am not quite clear what you mean by "intersection", but I think ?merge is what you are looking for. Cheers, Bert P.S. Please post in plain text, not HTML (though here it didn't matter). Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom

Re: [R] intersection between two matrices based on two columns in R

2015-09-09 Thread Jeff Newmiller
Matrices and data frames are write different. For this you most likely want to use days frames. ?merge Using typical options merge gives you all columns from both data frames. You can choose to select specific columns by indexing the data frames before passing them to merge if you don't want t