[R] add column with values found in another data frame

jdog76 jcallner at gmail.com
Sun Jan 15 19:55:10 CET 2012


Thanks so much Jorge and Pete !


Pete Brecknock wrote
> 
> 
> frame2$age = frame1[match(frame2$ID, frame1$ID),"age"]
> 
> 
This match function was exactly what I needed to know!


--
View this message in context: http://r.789695.n4.nabble.com/add-column-with-values-found-in-another-data-frame-tp4295626p4297417.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list