getSpecificTree: Get Specific Tree

Description Usage Arguments Value

Description

This function gets the standardization tree specific to the passed AUPUS data: it uses the country specific extraction weights when available, and it uses the standardization shares based on production. If these specific values are not available, it uses the default values.

Usage

1
getSpecificTree(aupusData, suaTree)

Arguments

aupusData

A list of two data.table objects, the names of which should be "nodes" and "edges". This object thus contains the AUPUS data. This object is usually the output from the Aupus function.

suaTree

A data.table containing columns childID, parentID, extractionRate, and calorieExtractionRate. This table specifies how SUA level commodities will get standardized to their primary equivalents.

Value

A data.table with the extraction rates and shares for each year/country/parent/child.


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