code polygon
| % cover | fragility
|
|---|
| a | 50 | 4 |
| a | 15 | 5 |
| a | 35 | 2 |
| b | 100 | 5 |
| c | 20 | 1 |
| c | 80 | 3 |
d | 100 | 3 |
| e | 60 | 2 |
| e | 40 | 4 |
I have to summarize the "code polygon" so that from the various entrys corresponding to the same code, it only remains the one with highest "%cover". When you use the summarize tool, for each of the fields of the output table you have to choose which parameters you want to appear. But in this case I would like that the "fragility" value in the output table corresponds to the one in the same entry as the highest "%cover" value. The output table would have to look like this:
| code polygon | % cover
| fragility
|
|---|
| a | 50 | 4 |
| b | 100 | 5 |
| c | 80 | 3 |
| d | 100 | 3 |
| e | 60 | 2 |
Since I have several thousand entries in my input table, could anyone help me find a way to do this authomatically?
Thanks in advance