Thanks for your response.
The original data like this:
input code score ss $;
1944 .
1944 . 412
959 548 417
959 .
170 665 408
170 659
171 581
171 580 183
176 665
176 . 414
I want to get dataset like this
959 548 417
170 659 408
171 580 183
176 665 414
1st column code is doubled, I want to keep one unique code,
2nd column is score, there are two scores for doubled code, and I want to pick the smaller one.
3rd column is ss, there are one value and one missing for doubled code, and I want to pick non-missing value.
Could you please help fix it out?
Thanks very much!
Qing
... View more