Description Usage Arguments Details Value
A few edges in the commodity trees are labeled with an 'F' to indicate that processing is 'forward'. The parent commodities in these edges are immediately converted into the corresponding child and then they are removed from the tree (as we will standardize to the children instead). This is a rare scenario; an example commodity is sugar.
1 | processForward(data, tree, standParams)
|
data |
The data.table containing the full dataset for standardization. |
tree |
The commodity tree which provides the edge structure. |
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. |
Note: when commodities are processed forward like this, the final flag is assigned ARBITRARILY as the first flag observed (for lack of a better approach). This should be corrected.
A list of names 'data' and 'tree'. Both objects must be returned, as the tree is updated by pruning off some edges.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.