I have two datasets that I want to merge. One dataset contains the variables: state, year1, year2, year3, etc. The second data set has the following variables: year, categorical variable, state1, state2, state3, state4, etc. So the first dataset has one variable that describes the state for each observation and the other dataset has a variable for each state. What is the most effiecient way for me to create a state variable for the second dataset so that I can merge the two datasets by state?
-
Login or Register
- Log in with
Comment