Counts how often each element of the provided subdimension exists in the given
data set. Originally created to count the number of cells in a region (this
is also where its name originates from) it can now be used to count elements
of any subdimension via the dim argument.
Usage
getCPR(x, dim = 1.1)
Value
cells per region
Arguments
x
MAgPIE object or a resolution written as numeric (currently only
data for 0.5 degree resolution is available).
dim
Dimension for which the items should be returned. Either number or
name of dimension or a vector of these (in case of a vector all subimensions
must belong to the same main dimension!). See dimCode for more details.