Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 65565

Merge data from different rows

$
0
0
Dear all,

This question might be really basic for most of you guys. My data takes the following form:
Observation v_1 v_2 v_3 v_4 v_5 v_6 v_7 v_8
Laura 12 10 13
Laura 9 7
Peter 10 12 14 17 19 20
Peter 8
Peter 18

The table I want to generate should look as follows:
Observation v_1 v_2 v_3 v_4 v_5 v_6 v_7 v_8
Laura 12 10 13 9 7
Peter 10 12 14 17 19 20 8 18
Summarizing what can be seen in the two tables, my problem is that I want to merge information from different rows and add the information so that there are no gaps.

Feel free to respond to the post if the description of my problem is insufficient.

Thank you very much for your help in advance and all the best,
M.R.

Viewing all articles
Browse latest Browse all 65565

Trending Articles