Hi!
I have a matrix looking something like this:
21 4.51076
21 48.3399
19 11.4743
21 36.6765
22 18.3587
23 19.7070
21 59.0842
20 40.9994
24 4.93227
28 44.4808
25 18.9996
24 29.4205
26 17.5263
26 28.4772
The elements in column 1 are as you can see not unique.
Out of the entrys in column 1 with the same value, i would like to keep only the smallest value in column 2 such as:
21 4.51076
NaN NaN
19 11.4743
Nan NaN
22 18.3587
23 19.7070
Nan NaN
20 40.9994
24 4.93227
28 44.4808
25 18.9996
NaN NaN
26 17.5263
NaN NaN
Any suggestions?
Regards,
Anders Holmberg
Best Answer