Closed 0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q closed 2 years ago
This behavior is in fact intended and is basically inherited from the default behavior under pmatch = FALSE
. Here an example:
> p <- maxample("pop")[,1,1]
> p[c("AFR","AFR"),,]
An object of class "magpie"
, , scenario = A2
t
i y1995
AFR 552.6664
AFR 552.6664
Running the same thing with pmatch = TRUE
it would be inconsistent to only have a single entry returned with the otherwise identical call:
> p[c("AFR","AFR"),,,pmatch = TRUE]
An object of class "magpie"
, , scenario = A2
t
i y1995
AFR 552.6664
AFR 552.6664
Minimal example
returns the
gdp_SSP2EU
variable twice, as it is matched by bothSSP2
andSSP2EU
.I suspect the behaviour is not intended and it limits the usefulness of the
pmatch
option.