Let‘say I have a TableA:
Code Description
001 Apple
002 Banana
I also have TableB:
Description
001
002
003
I want to replace the values in Description of TableB with values from Description of TableA.
I understand that I can do a simple join. But, I would like to replace values. How can I do that?
My possible solution is the following, but it does not work properly:
TableB$Description <- TableA[TableA$Code %in% TableB$Description, Description]