computeSupplyComponents: Final Standardization to Primary Equivalent

Description Usage Arguments Value

View source: R/computeSupplyComponents.R

Description

After the full SUA has been balanced, all the commodities need to be rolled up to their primary equivalents. This function does this, aggregating up trade and food.

Usage

1
computeSupplyComponents(data, standParams, loop)

Arguments

data

The data.table containing the full dataset for standardization.

standParams

The parameters for standardization. These parameters provide information about the columns of data and tree, specifying (for example) which columns should be standardized, which columns represent parents/children, etc.

loop

just an index of loops

Value

A data.table with the aggregated primary commodities.


SWS-Methodology/faoswsStandardization documentation built on Feb. 7, 2022, 5:05 a.m.