validateTree: Validate ExtractionRates of Commodity Trees

Description Usage Arguments Value

Description

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

Usage

1
2
validateTree(tree = NULL, min.er = 0, max.er = 10,
  validateShares = TRUE)

Arguments

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

validateShares

if to check also shares flags and figures or only Extraction Rates. Default set to TRUE

Value

A message with indication of validation complete or a file with values to correct an email if on the system.


SWS-Methodology/faoswsUtil documentation built on May 9, 2019, 11:53 a.m.