Wednesday, September 1, 2021

how to merge data using different key variable names?

I want to merge data between variable1 in dataset1 and variable2, variable3, variable4 in dataset2 repectively.
Can we use user-written command to fulfill this? Changing the names of variable2, variable3, and variable4 to variable1 in dataset2 step by step is a direct way, but I want to figure out do we have easier way.
Thanks so much!

No comments:

Post a Comment