I'm new to R programming and I'm stuck on the example below.
Basically I have two data sets:
dataset1:
ID Category
1 CatZZ
2 CatVV
3 CatAA
4 CatQQ
dataset2:
ID Category
1 Cat600
3 Cat611
I'm trying to overwrite the 'category' values in dataset1 with the 'category' values in dataset2 where there is an ID match between the two data sets.
So the outcome would look something like this:
dataset1:
ID Category
1 Cat600
2 CatVV
3 Cat611
4 CatQQ