[R] Need help merging two dataframes

B77S bps0002 at auburn.edu
Fri Feb 11 18:09:26 CET 2011


## i didn't try this, but I would think it would work

newAB <-data.frame(AB$id, AB$age, AB$sex, AB$area)
colnames(newAB)<-c("id","age", "sex, "area") 
uni.newAB <- unique(newAB) 
t3<-merge(t2, uni.newAB, by="id", all=FALSE) 
-- 
View this message in context: http://r.789695.n4.nabble.com/Need-help-merging-two-dataframes-tp3297313p3301627.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list