Description Usage Arguments Details Value
This function determines how the balance and statistical discrepancy columns should be filled in. There are two scenarios:
1 2 | fillBalance(calculatedBalance, balanceNum, balanceSymb, element181Num,
element181Symb, data)
|
calculatedBalance |
The column name of data corresponding to the balance calculated by the function calculateBalance. |
balanceNum |
The column name of data corresponding to the value of the balancing element. |
balanceSymb |
The column name of data corresponding to the symbol column for the balancing element. |
element181Num |
The column name of data corresponding to the value of element 181 (Statistical Discrepancies). |
element181Symb |
The column name of data corresponding to the symbol of element 181 (Statistical Discrepancies). |
data |
The AUPUS node dataset, typically as produced by buildNodes. |
If the symbol currently in the balance column is "replaceable" (see ?replaceable) and if the computed balance is positive, then the computed balance is placed in the balance column and statistical discrepancy is set to 0.
If the computed balance is negative, or if the current balance symbol is not replaceable, then the computed balance is placed in the statistical discrepancy column.
A list with 5 vectors of the same length:
originalValue: The numeric vector of the updated balance column.
originalSymb: The symbol vector of the updated balance column.
discrepancyValue: The numeric vector for the statistical discrepancy column.
discrepancySymb: The symbol vector for the statistical discrepancy column.
replaced: A logical vector which is TRUE if the computed value has been placed in the balance element column and FALSE otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.