calculateEle121: Calculate Element 121 (Losses)

Description Usage Arguments Value

Description

Element 121 (losses) is calculated as a simple ratio of total supply: E_121 = R_121 * (total supply) / 100. Values are always updated in this fashion unless the symbol for element 121 is not replaceable (i.e. it's an official figure).

Usage

1
calculateEle121(stotal, data, aupusParam)

Arguments

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).

Value

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 121's value and symbol updated.


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