I have a dataframe key and a column in a dataframe that needs to be remapped according to the key.
IDhex=c("asdj23","kjh23s")
IDHuman=c("Label1","Label2")
IDKey=data.frame(IDhex,IDHuman)
MasterDF$UserID
has a thousands of entries of either asdj23
, kjh23s
or ''
(empty).
I need to find an replace this column according to the mapping from IDkey
. I need a coding solution that is INDEPENDENT OF IDKEY size. There will be a loop that takes in different keys that are 2xn in size.