getCommodityTree: Get Commodity Tree

Description Usage Arguments Value

Description

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

Usage

1
2
getCommodityTree(geographicAreaM49 = NULL, timePointYears = NULL,
  parents = 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.

parents

character, optional. Return only children of these parents.

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 old system MAY have been that missing extraction rates were assumed to be 1.


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