[R-sig-Geo] R equivalent of join between two data frames

Francis Markham fmarkham at gmail.com
Tue Nov 1 08:09:38 CET 2011


Erin,

I believe you can. See the help for merge, in particular the all.x and
all.y parameters.

Cheers,

F. Markham

On 1 November 2011 18:03, Hodgess, Erin <HodgessE at uhd.edu> wrote:
> Hi!
>
> I'd like to remove the non-matching rows, if possible.  I don't think you can do that with merge.
>
> Thanks,
> Erin
>
>
> Erin M. Hodgess, PhD
> Associate Professor
> Department of Computer and Mathematical Sciences
> University of Houston - Downtown
> mailto: hodgesse at uhd.edu
>
>
>
> -----Original Message-----
> From: r-sig-geo-bounces at r-project.org on behalf of Dan Putler
> Sent: Tue 11/1/2011 1:59 AM
> To: r-sig-geo at r-project.org
> Subject: Re: [R-sig-Geo] R equivalent of join between two data frames
>
> Hi Erin,
>
> Is the "merge" function appropriate? If you are joining a non-spatial
> data frame to a spatial data frame object (e.g., a
> SpatialPointsDataFrame) it should work.
>
> Dan
>
> On 10/31/2011 11:33 PM, Hodgess, Erin wrote:
>> Dear R Sig Geo People:
>>
>> Is there an equivalent of "join" from ArcGIS 10 in R, please?
>>
>> I've been experimenting with "match" but the results between the two are not the same.
>>
>> thanks,
>> Sincerely,
>> Erin
>>
>>
>> Erin M. Hodgess, PhD
>> Associate Professor
>> Department of Computer and Mathematical Sciences
>> University of Houston - Downtown
>> mailto: hodgesse at uhd.edu
>>
>>
>>       [[alternative HTML version deleted]]
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



More information about the R-sig-Geo mailing list