Re: [R] Matching multiple columns in a data frame

2009-05-07 Thread jim holtman
?merge > merge(A,B) C1 C2 1 A 200 On Thu, May 7, 2009 at 2:19 AM, Raghavan, Nandini [PRDUS] < nragh...@its.jnj.com> wrote: > Hello, > > > > I am trying to extract a subset of a dataframe A (2 columns) by > extracting all entries in A (several repeated entries) that match > dataframe B in bo

Re: [R] Matching multiple columns in a data frame

2009-05-06 Thread Bill.Venables
r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Raghavan, Nandini [PRDUS] Sent: Thursday, 7 May 2009 4:19 PM To: r-help@r-project.org Subject: [R] Matching multiple columns in a data frame Hello, I am trying to extract a subset of a dataframe A (2 columns) by extracting all entri

[R] Matching multiple columns in a data frame

2009-05-06 Thread Raghavan, Nandini [PRDUS]
Hello, I am trying to extract a subset of a dataframe A (2 columns) by extracting all entries in A (several repeated entries) that match dataframe B in both columns. For example, part of A and B are shown below. The following does not seem to work correctly. This only seems to select on the