JGCRI / gcamfaostat

An R package to prepare, process, and synthesize FAOSTAT data for global agroeconomic and multisector dynamic modeling
https://jgcri.github.io/gcamfaostat/
Other
6 stars 1 forks source link

New commodity balance (CB) is now made available by FAOSTAT #5

Open realxinzhao opened 10 months ago

realxinzhao commented 10 months ago

New commodity balance (CB) is now made available by FAOSTAT, we will need to update the corresponding use in module L105.

Previously, it was only available by 2013. So for oilseed crushing, we were using the rates prior to 2013 for later years. This can be updated now.

realxinzhao commented 10 months ago

The new CB is not really useful for now:

  1. CB is not added to the API link yet. It seems there will be some code changes. Old series will be CBH and the new one after 2010 will be CB.
  2. More importantly, not all CB items are made available yet. Oilseed cakes are not included!

So in the BYU branch, an assertation is added in L101_RawDataPreProd4: assertthat::assert_that(CB %>% pull(year) %>% max <= 2013) Will need to revisit in later updates

realxinzhao commented 10 months ago

Okay, oilseed cakes are now included in SCL, so not CB anymore, for after 2010. But they are still in the old CB(H) series.

And new cake items are added e.g., cake of rice bran, cake of maize, cake of linseed, etc.