[R] Matching pairs from two data frame

solea laffargue_pascal at yahoo.fr
Mon Apr 7 16:20:00 CEST 2008


I am looking for a solution to match 2 dataframes from pairs of values (x and
y) as indicated thereafter :

First dataframe : 
DATA1
     x    y     a
1  30   40    0.2
2  21   130  0.3

Second dataframe
DATA2
     x    y     b
1  30   40    1
2  40   30    3
3  20   40    7
4  11    30   2
5  130  250  15
6  21    130  17

expected Results :

DATA3
    x    y      a      b
1  30  40    0.2    1
2  21  130   0.3   17

Many thanks in advance fo your help

-- 
View this message in context: http://www.nabble.com/Matching-pairs-from-two-data-frame-tp16537467p16537467.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list