I have 3 data sets that i would like to merge. The first one is the coded data set:
ID Gender Race
1 0 1
2 1 3
3 1 2
The second and third data sets are the code tables with descriptions
Code Gender
0 Female
1 Male
and
Code Race
1 White
2 Black
3 Asian
I want to see if there is a better way than just doing a ton of merge statements because i have many more variables than these 2 that i need to merge with their descriptions. I was thinking that a possible for loop or l/sapply would be good for this task.
I want to make it look like:
ID Gender Race
1 Female White
2 Male Asian
3 Male Black
Thank you very much for your help!