getCommodityTreeNewMethod: Get Commodity Tree

Description Usage Arguments Value

Description

This function pulls the commodity trees in the new CPC system.

Usage

1
getCommodityTreeNewMethod(geographicAreaM49 = NULL, timePointYears = NULL)

Arguments

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.

Value

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 NEW system is that 0 ExtractionRates are NA, meaning that that connection is not valid for that cpuntry/commodity/year combination


SWS-Methodology/faoswsUtil documentation built on May 9, 2019, 11:53 a.m.