Re: [R] replace some values of a column with diffrent values

2012-02-05 Thread Petr PIKAL
Hi For such tasks I would use merge merge(u, v, by.x="name", by.y = "enter", all.x=TRUE) If you do not want coe column anymore you can easily get rid of it. Regards Petr > > Hi Valerie > > One way would be to use the match function. > > # Your Data > u =data.frame(coe=c(0,0,0,0,0,0,0,0),

Re: [R] replace some values of a column with diffrent values

2012-02-05 Thread Pete Brecknock
Hi Valerie One way would be to use the match function. # Your Data u =data.frame(coe=c(0,0,0,0,0,0,0,0), name=c("Time","Poten","AdvExp","Share","Change","Accounts","Work","Rating")) v = data.frame(coeff=c(0.7272727,0.322,0.0500123), enter=c("Accounts","Time","Pot