[R] Subsetting question
darkgaze
donaldngwe at gmail.com
Wed Oct 5 23:27:24 CEST 2011
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.
More information about the R-help
mailing list