Description Usage Arguments Details Value
This function computes element 141 (Consumption)
1 | calculateEle141(stotal, data, aupusParam)
|
stotal |
The column name of data corresponding to total supply. |
data |
The AUPUS node dataset, typically as produced by buildNodes. |
aupusParam |
A list of running parameters to be used in pulling the data. Typically, this is generated from getAupusParameter (see that function for a description of the required elements). |
The following AUPUS logic is used in computing this element:
For commodity types in 58, 59, 60, and 61, element 141 is computed as E_11 + E_51 + E_61 - E_91 - E_95 - E_161.
For commodity type 50 (Jute), the original AUPUS logic was very complex and also written in such a way as to cause potential errors. Thus, no processing is done for this commodity type: it is left unchanged by this function.
For all other commodity types, the consumption is computed as a ratio of the total supply: E_141 = R_141 * (total supply) / 100
This function returns an integer vector containing the row numbers of observations which were updated. However, it also has a side effect: rows within the passed data.table ("data") have element 141's value and symbol updated.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.