Hi all, Suppose I have
data1 A B 1 a 1 b 2 c 2 d and data2 D E F x y 1 w z 2 and I want data2 D E F G x y 1 a,b w z 3 c,d I am trying data2$G=list(data1$B[data1$A==data2$F,]) How do I correct this approach? -- View this message in context: http://r.789695.n4.nabble.com/Subsetting-question-tp3876252p3876252.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.