Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"with_USA" only works by itself, not in conjunction with "linear" #30

Closed
johanneskoch94 opened this issue Sep 3, 2024 · 0 comments
Closed

Comments

@johanneskoch94
Copy link
Member

a <- new.magpie(
  years = 2000,
  cells_and_regions = "AIA",
  names = "foo",
  fill = 1
)

#das gibt NA zurück
GDPuc::convertGDP(
  gdp = a,
  unit_in = "constant 2005 US$MER",
  unit_out = mrdrivers::toolGetUnitDollar(),
  replace_NAs = c("linear", "with_USA")
)

#hätte erwartet, dass dieses ergebnis rauskommt
GDPuc::convertGDP(
  gdp = a,
  unit_in = "constant 2005 US$MER",
  unit_out = mrdrivers::toolGetUnitDollar(),
  replace_NAs = "with_USA"
)

Thanks @fbenke-pik for raising this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant