calculateTotalSupply: Calculate Total Supply

Description Usage Arguments Value

Description

This function calculates total supply by summing up elements 51, 58, 61, and 66 (see arguments below to understand what these items are). Also, the itemTypeCol is required as a handful of commodities are treated differently when computing supply (see aupusGroups$initialAsSupply).

Usage

1

Arguments

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

No value is returned, but a new column ("TOTAL_SUPPLY") is appended to the passed data.table. This column provides the total supply for the balancing.


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