I have some data that looks like this:
no. id year var1 var2 var3
1 1 2000 50 . .
2 1 2000 . . 10
3 2 2001 . . 500
4 2 2001 200 . .
5 3 2002 . 300 .
6 3 2002 . . 100
I want to combine all observations which share an id and year so that the data looks like this:
no. id year var1 var2 var3
1 1 2000 50 . 10
2 2 2001 200 . 500
3 3 2002 . 300 100
Any help is appreciated.