Description Usage Arguments Value
This function pulls the commodity trees in the new CPC system.
1 2 | getCommodityTree(geographicAreaM49 = NULL, timePointYears = NULL,
parents = NULL)
|
geographicAreaM49 |
A character vector of area codes. The trees returned are specific to country and year; thus, providing this parameter limits which trees are pulled. If NULL, all are used. |
timePointYears |
A character vector of years. See geographicAreaM49. |
parents |
character, optional. Return only children of these parents. |
A data.table object containing the commodity tree. The dimension columns correspond to the country, year, parent, and child commodity. Two value columns are available: extraction rate and share. The logic of the old system MAY have been that missing extraction rates were assumed to be 1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.