Re: [R] Comparing data frames

2010-04-19 Thread Laura Ferrero-Miliani
Thank you all for your help and suggestions. L On Sun, Apr 18, 2010 at 8:51 PM, Tal Galili wrote: > Would: > ?merge > Work for you ? > > > Contact > Details:--- > Contact me: tal.gal...@gmail.com |  972-52-7275845 > Read me: www

Re: [R] Comparing data frames

2010-04-18 Thread Tal Galili
Would: ?merge Work for you ? Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) ---

Re: [R] Comparing data frames and keeping non-matches

2009-03-11 Thread Pele
Hi All, I found a solution that give the correct answer.. year <- c(2100:2110) x1 <- c(F,T,T,F,F,F,T,F,T,T,F) df1 <- data.frame(cbind(year, x1)) df1$subject <- c(1,1,1,2,2,3,3,3,3,4,4) df1$match <- 1 df1$key <- paste(df1$subject, df1$match, sep="") ; df1 df2 <- data.frame(cbind(year, x1)) df2$