Re: [R] Matching pairs from two data frame

2008-04-08 Thread solea
a so simple solution ... thanks a lot ! Henrique Dallazuanna wrote: > > Try: > > merge(DATA1, DATA2) > > On Mon, Apr 7, 2008 at 11:20 AM, solea <[EMAIL PROTECTED]> wrote: > >> >> I am looking for a solution to match 2 dataframes from pairs of values (x >> and >> y) as indicated thereaft

Re: [R] Matching pairs from two data frame

2008-04-07 Thread Bill.Venables
Try ?merge > d1 <- read.table(textConnection(" xy a 1 30 400.2 2 21 130 0.3 ")) > d2 <- read.table(textConnection(" xy b 1 30 401 2 40 303 3 20 407 4 1130 2 5 130 250 15 6 21130 17

Re: [R] Matching pairs from two data frame

2008-04-07 Thread Henrique Dallazuanna
Try: merge(DATA1, DATA2) On Mon, Apr 7, 2008 at 11:20 AM, solea <[EMAIL PROTECTED]> wrote: > > I am looking for a solution to match 2 dataframes from pairs of values (x > and > y) as indicated thereafter : > > First dataframe : > DATA1 > xy a > 1 30 400.2 > 2 21 130 0.3 >