search for: ck33422

Displaying 1 result from an estimated 1 matches for "ck33422".

Did you mean: cc36422
2007 Oct 25
1
Match and replace between two data.frames
Hi folks, I have two dataframes like these: DF <- data.frame(ID=c("AA1234","AB3233","AC4353","AD2345","AE7453"), CK32344=c(1,3,2,4,1), CK32664=c(2,1,1,2,3), CK33422=c(2,2,1,3,2)) VAL <- data.frame(num=rep(6,3), type=c("CK32344", "CK32664", "CK33422"), number=c("32","452","234")) I want to replace the values in DF$CK32344, DF$CK32664 DF$CK33422 with the corresponding number in the VAL$number. The...