calculateEle31: Calculate Element 31

Description Usage Arguments Value

Description

The value of this element is set to the sum of all the input values from the inputFromProcessing table (see getInputFromProcessData). Otherwise, the value (if replaceable) is set to NA.

Usage

1
calculateEle31(inputNum, data, aupusParam)

Arguments

inputNum

The column name of data corresponding to inputs from processing.

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 a list (of length two) of integer vectors containing the row numbers of observations which were updated (first by computing as a function of inputs, then next by setting to NA). However, it also has a side effect: rows within the passed data.table ("data") have element 31's value and symbol updated.


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