powered by
Selects the countries with the highest values in a magpie object
toolXlargest(x, range = 1:20, years = NULL, elements = NULL, ...)
vector with ISO country codes
magclass object that shall be used for ranking
the position of the countries in the top X which should be returned.
range of years that shall be summed for ranking. If NULL, the sum of all years is used.
range of elements that shall be summed for ranking. If NULL, all elements are used.
further parameters will be handed on to calcOutput function type.
Benjamin Leon Bodirsky, Jan Philipp Dietrich
toolXlargest(magclass::maxample("pop"), range = 1:3)
Run the code above in your browser using DataLab