balanceProductionElements: Balance Production Elements

Description Usage Arguments Details Value

Description

This function takes a data.table and balances the production elements (i.e. elements 31, 41, and 51). The relationship is 51 = 31 * 41 / divisionFactor, where divisionFactor is either 1, 1000, or 10000 depending on the item type.

Usage

1
2
balanceProductionElements(value31, value41, value51, symb31, symb41, symb51,
  divisionFactor)

Arguments

value31

A vector of values corresponding to element 31 (Actual Producing Factor).

value41

A vector of values corresponding to element 41 (Productivity Element).

value51

A vector of values corresponding to element 51 (Output).

symb31

A vector of sybmols corresponding to element 31. These are provided so that they can be returned (updated, if necessary, when a balance occurs).

symb41

A vector of sybmols corresponding to element 41. These are provided so that they can be returned (updated, if necessary, when a balance occurs).

symb51

A vector of sybmols corresponding to element 51. These are provided so that they can be returned (updated, if necessary, when a balance occurs).

divisionFactor

A numeric vector taking values of 1, 1000, or 10000. This number is required for the balance equation, and is determined based on item type.

Details

If two elements are available, the third will be computed. If only one or zero elements are available, no values will be updated. divisionFactor should always be supplied.

Value

A list of 6 elements containing values 31, 41, and 51 and symbols 31, 41, and 51. All elements will be the same as what was passed except when a balance was possible, and in this case one of the three values will be updated along with it's symbol set to "C".


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