Hello,
I have a dataset with 100 countries (please see the sample screenshot below) where I would like to keep only 3 variables with the highest values for each country.
I was not able to come up with the solution/code. I would really appreciate if you could share your thoughts on this.
Many thanks in advance.

I have a dataset with 100 countries (please see the sample screenshot below) where I would like to keep only 3 variables with the highest values for each country.
I was not able to come up with the solution/code. I would really appreciate if you could share your thoughts on this.
Many thanks in advance.
Comment