Description Usage Arguments Value
View source: R/finalStandardizationToPrimary.R
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.
1 2 |
data |
The data.table containing the full dataset for standardization. |
tree |
The commodity tree which provides the edge structure. Note that this tree may be different than the processing tree, in particular if some commodities will be standardized into a different aggregate. |
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. |
sugarHack |
Logical. See standardizeTree for details. |
specificTree |
Logical. Is a country/year specific commodity tree being provided? |
cut |
is a vector of primary Equivalent commodities |
additiveElements |
Column names of data which should be aggregated/standardized via simple addition. |
A data.table with the aggregated primary commodities.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.