Description Usage Arguments Value
This function perform Flag Validation for the commodity Tree Validation. The possible flags are (decided with Data Team):
Extraction Rates: (T,-) = validated up do 2013 - protected (E,t) = copied from 2014 onwards - not protected but that do not change during standardization process (E,f) = manually changed by the user - protected
Shares: (E,-) = coming from old methodology - NOT protected. These values willbe overwritten at any run of the module, except the values of oils, which are kept, unless manually changed (E,f) = manually changed by the user - protected (I,i) = calculated by the module - not protected
1 | validateTreeExtractionRates(tree = NULL, min.er = 0, max.er = 10)
|
tree |
the commodity tree to check |
min.er |
the lower limit of the range of acceptable values for Extraction Rates. default to 0 |
max.er |
the upper limit of the range of acceptable values for Extraction Rates. default to 7 |
a list of two elements: messageER, is a message with the information of validity of flags and invalidER is a data.table which contains invalid Flags or invalid Values or is empty, if everything is valid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.