Hello. I have a dataset for several countries and years. I would like to know the code to find the year that corresponds to the maximum value for a variable?
For example, I have the maximum of pol_risk=80. How can I find the year that corresponds to this value?
Can someone help me with this issue?
Thank you in advance.
For example, I have the maximum of pol_risk=80. How can I find the year that corresponds to this value?
Can someone help me with this issue?
Thank you in advance.
Comment