hello,
i have the following problem: For each observation in my dataset i have hundreds of columns. They are named: day_1 day_2 day_3 day_4 day_5.....
Then I have a variable that contains a number, let's say n=4.
Now I want to create another variable, let's say 'result', that is equal to day_n.
In my example it should be: result = day_4
But n is not always 4. So I need a small programme that helps me to solve that problem.
Thanks in advance for your help.
matt
... View more