Hello,
I want to create a new ROW (not column) in my dataset which contains numbers from 1,2,....to my last variable or add a consecutive number to each Observation in one row (e.g. row 1 for first column: add 1, row 1 for second column: add 2.....) . However, I can't figure out how to do it. I experimented a lot with "forvalues" but can't figure out how to do it.
I would be very thankful for help.
I want to create a new ROW (not column) in my dataset which contains numbers from 1,2,....to my last variable or add a consecutive number to each Observation in one row (e.g. row 1 for first column: add 1, row 1 for second column: add 2.....) . However, I can't figure out how to do it. I experimented a lot with "forvalues" but can't figure out how to do it.
I would be very thankful for help.
Comment