getStandardizationTree: Get Standardization Tree

Description Usage Arguments Value

Description

This function pulls the tree for standardization.

Usage

1
getStandardizationTree(aupusER, defaultOnly = FALSE)

Arguments

aupusER

The extraction rate table from the AUPUS data object. This argument is needed because it provides a way to overwrite the default extraction rates with country specific ones, if available.

defaultOnly

Logical. Should only default extraction rates be used? Or should country-specific rates be used when available and default rates used in all other cases? The old methodology isn't clear about what is used.

Value

A data.table object containing 4 columns: child, parent, extractionRate, and caloriesOnly. The child and parent columns contain character values of the items, extractionRate contains the extraction rates, and caloriesOnly is a logical indicating if the edge of interest corresponds to an aggregation of just calories or both calories and quantities.


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