Re: [R] Finding rows common to two datasets

2009-04-28 Thread Tony Plate
data_frame_y[c("Latitude","Longitude")]) common data frame with 0 columns and 0 rows Is there an obvious solution to this? Should I be using 'unique' instead, and if so, how would I get the above to correspond to this command? Thanks, Steve _

Re: [R] Finding rows common to two datasets

2009-04-28 Thread jim holtman
espond to this command? > > Thanks, > > Steve > > > > > >> Date: Tue, 28 Apr 2009 13:36:51 +0530 >> Subject: Re: [R] Finding rows common to two datasets >> From: umesh.sriniva...@gmail.com >> To: smurray...@hotmai

Re: [R] Finding rows common to two datasets

2009-04-28 Thread Umesh Srinivasan
uot;)]) > > common > data frame with 0 columns and 0 rows > > > Is there an obvious solution to this? Should I be using 'unique' instead, > and if so, how would I get the above to correspond to this command? > > Thanks, > > Steve > > >

Re: [R] Finding rows common to two datasets

2009-04-28 Thread Steve Murray
so, how would I get the above to correspond to this command? Thanks, Steve ________ > Date: Tue, 28 Apr 2009 13:36:51 +0530 > Subject: Re: [R] Finding rows common to two datasets > From: umesh.sriniva...@gmail.com > To: smurray...@hotmail.com > CC: r-help@r-project.org > >

Re: [R] Finding rows common to two datasets

2009-04-28 Thread Umesh Srinivasan
Dear Steve, Try ? intersect and see if that might help. Cheers, Umesh On Tue, Apr 28, 2009 at 1:29 PM, Steve Murray wrote: > > Dear all, > > I have 2 data frames, both with 14 columns of data and differing numbers of > rows. The first two columns are 'Latitude' and 'Longitude'. I want to find

[R] Finding rows common to two datasets

2009-04-28 Thread Steve Murray
Dear all, I have 2 data frames, both with 14 columns of data and differing numbers of rows. The first two columns are 'Latitude' and 'Longitude'. I want to find the pairs of Latitude and Longitude coordinates which are common to both datasets, and output a new data frame which is composed of